|
Is the DxSDK and managedDirectX successfully installed on your machine?
'A programmer ist just a tool which converts caffeine into code'
|
|
|
|
|
hi,i am using windows xp with service pack-2, i think DirectX should already exist in my system, but anyhow i installed DirectX 9 from CD. but he problem is still there.
|
|
|
|
|
|
Hi!
This may be a rookie question, but the truth is I can't do it: how do I use a C++ class in a C# project?
I have a C# project that works just fine, but I need to use a class implemented in a C++ project. I simply added the C++ project to my solution but I keep getting bulding errors. Is this the right thing to do?
|
|
|
|
|
Is your C++ class written in Managed C++? Only classes written in MC++ are accessible from C#.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hello,
I'd like to know if its possible to repeat an image instead of streching it for a specified width/height (rectangle).
I tried to see if a DrawImage(...) method allowed me to do that, but to no result.
Thanks IA.
|
|
|
|
|
I'm working on a ASP.Net and C# project and want to send email through exchange server and
I only have a mailbox folder name (like "User 1") which exists on exchange server. If I send
email to "User 1" through my MS Outlook it works fine but I don't know how to obtain email
address of "User 1" from exchange server from my ASP.Net, C# application.
Can anyone post sample code or give some direction to resolve this issue.
Any help will be appreciated.
sdh01
|
|
|
|
|
I m Displaying an instance of independent form as modally mean with ShowDialog() method in the child of a Prent Form. i want to make the displayed modal Showdialog Form notmoveable(normally we move a dialog box with help of mouse click and drag the dialog changing its location). I want to keep the location of the dialog fix. Or in other word i want to limitize its location within a specied Area. How to achieve this purpose. Please help me.
Thnx in Advance.
ParentForm p;
ChildForm c;
IndependentForm inf;
Parent Form Loads(){
c.show();
}
// now there is an instance of independent form that gets displayed when we click a button on theChildForm Instance;
on click(.. ...){
inf.ShowDialog(this);
}
// Now the problem is i want to limitize the or fix its location{Location of inf.ShowDialog(this)} making it not dragable or only dragable within specied coordnates;
|
|
|
|
|
I also have same requirement...
sejal
|
|
|
|
|
Hi,
I have made a windows application in C#. The problem is that when i maximize the form, the controls on the form dont resize. How can i make them resize when i maximize or resize the main form?
|
|
|
|
|
Give the Anchor property a value, In the side that you want it to be fit to.
"Praying." Is this only what I can do for him ?
|
|
|
|
|
Hi,
i need to work with an unmanaged dll and in each function i want to use i have a struct as parameter. The layout of this struct is given in a c header file, but i'm not sure how to get this working in c# Here is apart of the struct:
<code>
struct _stEgControl
{
struct _stEgData *pstEgData;
wchar_t *pszCommName;
void *pvEgVideoBufferAddress;
void *hEyegaze;
}
</code>
Question 1:
this struct inside my struct is rededined by me in a class with the same way. I'm not sure if this i right:
<br />
[MarshalAs(UnmanagedType.LPStruct)]<br />
public _stEgData *pstEgData;<br />
Question 2:
there is no wide character in c#. can i use a char?
Question 3:
how i have to work with this void* ? How do i manage this in my class ?
could it be in this way:
<br />
[MarshalAs(UnmanagedType.FunctionPtr)]<br />
public void *pvEgVideoBufferAddress;<br />
Thanks for help.
Frank
|
|
|
|
|
when i write the following line an error occur “ type or namespace does not occur”
using Microsoft.DirectX;
using Microsoft.DirectX.DirectSound;
plz give me the solution I will be thankful to u
|
|
|
|
|
Hi,
you have to install the Microsoft DirectX 9.0c SDK (the newest SDK is from october 2005: http://www.microsoft.com/downloads/details.aspx?FamilyId=1C8DC451-2DBE-4ECC-8C57-C52EEA50C20A&displaylang=en)
and Managed DirectX. Also, you have to put a reference to the dlls in your VS oder #d-project.
André
-- modified at 10:03 Saturday 22nd October, 2005
|
|
|
|
|
Hi there I've encountered a small problemo......
I'm trying to change brightness of an image...so far so good.
However I managed to make it work on 24-bit format images. When the filter is fed with an image which is either 8bit indexed or 32-bit formats ...it fails!
...is there any way to access 8-bit indexed images with C# pointers!
I was observing this message board and found out the following code:
<br />
Bitmap bmp = new Bitmap(width, height, PixelFormat.Format32bppArgb);<br />
<br />
Graphics g = Graphics.FromImage(bmp);<br />
g.DrawImage(src, 0, 0, width, height);<br />
g.Dispose();<br />
...Many thanks to Andy Kirillov
Does the above code...'store' my image as a 24 bit image?
The code project....a perfect experience
-- modified at 8:39 Saturday 22nd October, 2005
|
|
|
|
|
Hello
Yes, you can use the above code to convert your image to 24bpp or 32bpp format (as you already know, Image.Clone does not produce this functionality, as it was expected). With 24bpp image you can use most of image processing filters.
XeoN-Kc wrote: I was observing this message board and found out the following code:
Yes, there is. Use LockBits . But, you will get troubles if you have color indexed image (like GIF). As you can see from my first article, I am using 24bpp format for color images, 8bpp indexed for grayscale images. Both formats I am processing using LockBits . And in the case of grayscale image it's rather obvious to implement brightness filter (the same logic as for 24bpp).
XeoN-Kc wrote: ...Many thanks to Andy Kirillov
Oh, what is it ? Who changed my name ?
With best regards,
Andrew Kirillov, MCP x 3
Prize winner, August 2005
|
|
|
|
|
Hi all,
I’m developing a client/ multi-threaded server and I’m a little bit concerns about the following:
Although at the server program (in which I run a service that runs this program at the background) I’m releasing unnecessary resources once I finished from them, I found that as clients joins the application, the Task Manger indicate an incensement at the memory assigned to the server application. Any idea of how I could minimize these Memory consumption
Thanks in advance
Kind Regards,
Mohammad
|
|
|
|
|
guys,
Can someone give me an Idea or link on how to handle a header / detail in my web application..
Scenario: Once the user completed the header information (textboxes) he will fill up the detail it can be many and at the same time the detail screen is on another page. After filling up the first ROW I will press the ADD button to create a header/detail record but in this case I dont want to save it directly to my SQL server until all the details has been done. Then, I press the SUBMIT button.
Can I do it in session variable or should I save it first to XML file then upon pressing the submit button I will save it to database.
Thanks.
|
|
|
|
|
Dear all,
Iam developing a bilingual application in C# framework version ver 1.1,
how to change language setting using windows API.
Please Help me
|
|
|
|
|
Does anybody have noticed a peculiar behaviour in VS.2005 beta 2 considering visual inheritence ?
I can't figure out if it's some buggy situation or it's a fault of mine.
I create an inherited form inheriting from another form, based in an external dll.All dependencies are already loaded in the final solution.After completing the wizard i get some curious messages in random order.
1."Cannot unload assembly 'final solution'.exe because its not a valid .NET framework assembly" ????????
2.It spits out an error about version confict between the external DLLs.
3.VS is closing immediately without saving anything and without making a dump.
I would appreciate a comment of someone met such behaviour because i feel if it's a bug i'm losing my time.
|
|
|
|
|
Hi,
VS2005 is still BETA. I also have some craches while working with the VS2005. In my opinion MS should release a BETA3 insted of the final, because the IDE is still instable. I don't have access to the RC, so I can't say, if the IDE of the RC is more stable.
André
|
|
|
|
|
Hi All
I wrote 2 application that talk one with the other [like com in C++].
The Application1 send string [like BSTR] to Application2 ->this string is in XML format.
I don't understand how Application2 will convert the string to be as XML format.
Can someone help me?
Thanks.
|
|
|
|
|
|
I know this is not true but i need immediate answer
I have Vs.net beta 2 copy, it s not original, I know, if the dvd is original, product key will automaticaly comes while setup progressing.
I have to install vs.net 2005 today immediately. please someone gives me his /her beta 2 product key . if not i wont complete my homework till monday. I think it s legal to share vs.2005 product key, BECAUSE it s Beta Please HELPPP
|
|
|
|
|
Funnily enough...my beta version never asked for a product key!!!
|
|
|
|