|
Hello,
The .lib file is not located in the windows\system\ dir. the dll you want to use is located there... already ...
I don't know if I'm sure, but the .lib file is used by the compiler. the dll by the program.
In the VC++ directory you should find the "lib" dir. DDraw.bib is located there!
for the header file:
I'm sure on this part . All your definitions, prototype declarations (headers ) and macro's should be there. The implamentation shoud be in the implementation file (*.cpp).
hope this helps.
|
|
|
|
|
Thanks Bob,
For some reason my compiler is saying that it cannot find the Ddraw.lib "include" file. The file is located in the MFC directory of my Visual Studio, but my compiler doesn't see it even though I have set the directory to it in TOOLS/OPTIONS. Hmmmm
Thanks Much, Dave
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
1. The more code you post, the less likely you are to get a reply. You can't expect someone to read through that much code.
2. Any definitions that you want to use in more than source one file should be in a header file.
3. You need to specify the path to ddraw.lib, not ddraw.dll. And it's not an include file. It's a library file.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Will do Ryan, Thanks. I only posted the code in hopes that someone would draw a line between what should be in a header file and what should not. I agree with you.
Dave
"The man who reads nothing is better educated than the man who reads nothing but newspapers."- Thomas Jefferson
|
|
|
|
|
Hi all,
I want to trace emails recieved and sent through my PC..throught any channel..either outlook or excxhange or OE..or hotmail yahoo or anyother..can anyone suggest me something..or give me any ideas..any pointers and ideas are highly appreciated..thanks a lot in advance..
Himanshu
|
|
|
|
|
I have been trying to download the Platform SDK containing GDI+. But unable to search it (because I do not know the release name). Will anyone help me?
Thanks.
|
|
|
|
|
Download it from here[^].
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
You beat me to it!
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
It's called the Graphics and Multimedia Services SDK. But it seems to be available only as part of the Core SDK. Get it from the SDK Update[^] center.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
I need to create more than one text box with the same name(this call array),with the code;
for i = 1 to CInt(request.Form("quantity"))
count = count + 1
serial_field = "serial"&count
end loop
then, when I need to check whether user already fill in this text box, I can not access that text box name.Text box name suppose to be serial1, serial2 and so on.I am using this code;
for (a=o;a<=30;a++){
if (document.Reg.element.serial[a].value == "") {
err = true;
msgstring = "Fill in serial number";
}
}
I can access the value only if I directly use the name like;
if (document.Reg.element.serial1.value == "") {
err = true;
msgstring = "Fill in serial number";
}
Any suggestion what I should do to solve this problem. I am sorry my explanation is quite massy.
Thanks
|
|
|
|
|
I wish I could help you but I don't know Javascripts. On the other hand, this is a C++ forum, so your question might not find an answer here. Please don't get offended by this.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
Toni78 wrote:
I don't know Javascripts
I do, but I'm not going to help anyway. We don't really want to encourage posts in the wrong forum
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I am sorry guys, I wrongly post to visual c++ forums.
anyway thanks
|
|
|
|
|
No problem . Have a nice day, or night or whatever it is there
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Try the Web Development[^] forum
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
When I used the C++ builder's tool named coff2omf.exe to
transform the COFF lib to OMF lib ,I find that the former
204 k file has change to 512 byte.why??
a good man in china
|
|
|
|
|
What system calls under MFC do you need to make to determine how many colors are being used by the system?
I am trying to determine hoe many colors are being displayed with the current settings (ie the number of colors you pick when you right click on the desktop and select Properties...Settings...Colors)
I want to set the background color and font color for a dialog box, but only if the user is running at least 16 bit colors because it looks like crap on a 256 color display.
I'm going to live forever or die trying!
|
|
|
|
|
Create a device context and use GetDeviceCaps() .
CClientDC dc(NULL);
int bitdepth = dc.GetDeviceCaps(BITSPIXEL); This will return the number of bits per pixel the screen is currently using.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Crap! You beat me to it! (and using a much better method too. dammit!)
I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]
|
|
|
|
|
Actually your method is the correct one to use for multiple-monitor support.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Atlantys wrote:
You beat me to it!
Don't you hate it when that happens
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Super nice!
Thanks.
I had another question on this:
Is this bulletproof or is it a heuristic?
Is there no OS level call to get this information?
Just curious - your answer works perfectly.
I'm going to live forever or die trying!
|
|
|
|
|
It will always work for the primary display. If you are using multiple displays, you'll need to use EnumDisplaySettings() as pointed out in another answer. Use ENUM_CURRENT_SETTINGS to return the current settings. The dmBitsPixel member of the DEVMODE structure will give the number of bits per pixel:
DEVMODE dm;
dm.dmSize = sizeof(DEVMODE);
EnumDisplaySettings(lpszDeviceName, ENUM_CURRENT_SETTINGS, &dm); lpzsDeviceName is the name of the device (returned by EnumDisplayDevices() ), or NULL to use the primary device.
Hope this helps,
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Ha! So, I was late, but I was more right! ;P (is that even possible? ) You were just more exact, providing example code.
I prefer to wear gloves when using it, but that's merely a matter of personal hygiene
[Roger Wright on VB]
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
[Rich Cook]
|
|
|
|
|
Atlantys wrote:
Ha! So, I was late, but I was more right!
Rub it in, why don't ya!
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|