|
where should i include that lib file
|
|
|
|
|
You can either include it as part of the project like you would any other .lib file, or you can use the #pragma comment(lib, ...) directive.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Why would you suggest that for a compiler error?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
But did you also define _WIN32_WINNT ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
I don't know whether you've solved the problem yet.
I found that VS6 defaults to creating applications which are Win95 / NT3.5 compatible, which excludes some "more advanced" Win98 / Win2000 functions (I was trying to do multi-monitor stuff.)
The solution is to add a #define to tell VS6 you are using a later Windows version:
#define WINVER 0x0500<br />
|
|
|
|
|
I'm trying to target a digital camera (Canon DIGITAL IXUS 500) with a browseforfolder function, its visible in the browselist, but since its not and SFDIR like "My Computer" and "ControlPanel" it wont return any string other than NULL.(the browseforfolder function works with other usb devices since they return a driveletter). The camera inventory can be browsed with Explorer. So anyone know how to find the "driveletters" for these kinds of "drives" other than their names that shows in My Computer like "Canon DIGITAL IXUS 500" or "OLYMPUS SP-350"? maybe any workaround? or is this impossible?
thanx!
|
|
|
|
|
rolfhorror wrote: I'm trying to target a digital camera (Canon DIGITAL IXUS 500) with a browseforfolder function...
Do you mean SHBrowseForFolder() ?
rolfhorror wrote: ...but since its not and SFDIR...
What is "SFDIR?"
rolfhorror wrote: So anyone know how to find the "driveletters" for these kinds of "drives"...
How about GetLogicalDriveStrings() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanks for reply.
yes its a SHBrowse...
sorry i meant FSDIR (filesys)
FSDIR like in the SHBrowse... flag RETURNONLYFSDIRS
i'll do some testing with GetLogicalDriveStrings()
-- modified at 11:34 Tuesday 10th April, 2007
..i've tried GetLogicalDriveStrings()
but it doesnt show up with this either..
cycled through the drives with this code just to see what turned up:
char szBuffer[1024];
::GetLogicalDriveStrings(1024, szBuffer);
char *pch = szBuffer;
while (*pch)
{
//printf("%s\n", pch);
GetDlgItemText(IDC_EDIT1, m_edit1);
SetDlgItemText(IDC_EDIT1, m_edit1+"\r\n"+pch);
pch = &pch[strlen(pch) + 1];
}
i think that this canon camera is not a "Logical drive" its more of a hidden "device" that has no driveletter. Rightclicking on the camera -> properties in MyComputer returns that its plugged into port: \\.\Usbscan0
whatever that means? and how to use this is some way?
also read somewhere that Canon cameras could be hard to "talk to" programmatically..
but that just maybe a matter of programming-skills.
-- modified at 11:52 Tuesday 10th April, 2007
|
|
|
|
|
Have you looked into the Canon SDK? I've never used it but I hear it exists.
I've only used TWAIN for Canon picture access.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I have three DLLs that display dialog boxes. The classes that display the dialog boxes for two of them are derived from CDialog and the third one is an ATL dialog. For sake of argument, we'll call the two CDialog classes CDialog1 and CDialog2 and the ATL dialog ATL3. The CDialog1 dialog has over 60 objects on it, a mix of combo boxes, edit boxes, radio buttons, and command buttons. CDialog2 has a much smaller number of objects on it but they are all standard controls. The same is true for ATL3. I've got the tab order set in all three dialogs so that pressing the tab key should allow the user to traverse the dialog in top-to-bottom, left-to-right order. However, when I run the application that loads these three DLLs the tab order for CDialog1 appears to be exactly opposite to what the tab order was defined. When the CDialog2 and ATL3 dialogs are displayed the tab key does nothing on either one of them. All three have one of the command buttons set as the default button.
My questions are:
1) Why does CDialog1's tab order at run-time appear to be exactly backward from it's defined tab order?
2) Why does setting the tab order for CDialog2 and ATL3 not appear to be working?
3) Does setting a default button on the dialog have an affect on the tab order?
|
|
|
|
|
Do the dialogs have the WS_EX_CONTROLPARENT style?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
No. None of the dialogs are configured with this extended style.
-- modified at 15:52 Tuesday 10th April, 2007
|
|
|
|
|
Actually I found out what was causing my problems with the CDialog classes. The app we are using is trapping the keystrokes. Some other of our DLLs were using a hook into the app to get the keystrokes passed down to our DLL code. Once I added this hook code into the CDialog2 DLL (see original posting) the tab keys worked. The reason I didn't stumble on this earlier is that we have so many DLLs as part of the project we are working on and the people that originally designed the other DLLs are no longer with the project (typical).
I now just have to find out how to do this in the ATL3 DLL code. I've got another template that works in our code so I'll just take a look at that.
Thanks for your help.
|
|
|
|
|
I'm developing a storm simulation project by using OpenGL. However, I have not found the way to simulate the wave of the ocean.
Please give me some tips, thanks!!!
|
|
|
|
|
Are you looking for SimulateOceanStormEx() ?
[j-o-k-e]
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
In the Storm Simulation SDK (SS SDK).
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Mark Salsbery wrote: Storm Simulation SDK (SS SDK).
also, in the StormSimulation:: namespace
|
|
|
|
|
toxcct wrote: in the StormSimulation:: namespace
Duh
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I'm sorry but I cant find where is the "Storm Simulation SDK (SS SDK)"
|
|
|
|
|
I believe we're pulling your leg here.
This is a complex subject. You should be asking PhDs that work on this stuff (maybe there's some
here).
Sine waves are a start but water surface tension, wind, etc. make storm waves alot more complex.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
It has been a while since I have done this, so I can only give you a brief overview of the concept. You basically need to create a vertex shader to modify the verticies of a triangle mesh. The most obvious method to modify the verticies, is to scale their Y position based on a sin wave generated from an origin point.
Below is a code snippet used to calculate the scale:
fTime = ((fFrameTimeElapsed + fPhase) * FREQUENCY)
fScale = sin(fTime * (2*PI)) * APMLITUDE + BASE;
The phase was calculated based on the vector dot product of the position of the current vertex and the polygon normal along the vertical plane.
The actual wave can be modified by changing the amplitude and frequency, but you're not exactly going to get crashing waves with an undertoe simulation.
If you think this is along the lines that could get you started, I can send you my old source code for this written in C using OpenGL, however I didn't comment it very well, so you may be even more confused once you get it.
Dustin
|
|
|
|
|
I shudder to think of the questions you will get if you do that.
I believe there is a screen saver sample here in the OpenGL section that does something like this.
|
|
|
|
|
Provided 'AS IS' with no explicit warranties or customer support.
|
|
|
|
|
i am opening a web page through shellexecuteex. how to know that the web page is being closed by the user. is there anyway to get this event. pls help me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|