|
Every now and again when I try to run a macro in VS6 I get the following message:
"One or more macro files have been updated. Would you like to reload all macros now?"
Even though I haven't touched any macro file.
Anyone know what can be causing this?
It seemed to only start occurring when I started using Windows XP.
Thanks,
Ed
|
|
|
|
|
Hi,
I'm having problems accessing a struct in a dll file using C++.
I have successfully loaded the DLL, and loaded and called some of the functions using LoadLibrary and GetProcAddress. However, there is an insert function that I am having difficulties with that requires a struct to be passed into it. This struct is defined within a file in DLL and must be populated before passed to the insert function.
I've looked for a similar function to GetProcAddress to use. I've also tried including the file within the DLL that defines the struct.
This one's got me completely banjaxed.
I'd appreciate any help at all.
Thanks,
Adam
|
|
|
|
|
You don't need to import anything in order to use a struct. Just #include in your main app the header where the struct is defined and use it like always. Is this what you were asking?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Ahhh, of course. Thank you very much. Now I'm receiving a new error.
Cannot open include file: 'winsds.h': No such file or directory
This must be specific to the dll I'm loading.
Thanks for your help. I was looking for a tough solution.
Adam
|
|
|
|
|
Cannot open include file: 'winsds.h': No such file or directory
Check the additional include directories in your project settings.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
I have a questionr regarding the useage of a virtual list control.
I keep all my data in my own array.
From time to time, the data in my array changes.
How could I make these changes reflected on the vlist control?
Jeremy.
Jeremy Pullicino
C++ Developer
Homepage
|
|
|
|
|
partially custom drawing the control. At CP there a some samples.
Try this @ home. (B&B)
|
|
|
|
|
Hello, i've just started C++ and currently looking into MFC. Is there a way that i could convert my existing console app to a MFC app?....because i wanted a GUI as well as a console window.....i tried adding the stdafx.cpp and the header file , the preprocessor def: _WINDOWS,_AFXDLL to my existing project. when compiled....i get......"c:\program files\microsoft visual studio\vc98\mfc\include\afxver_.h(130) : fatal error C1189: #error : Please use the /MD switch for _AFXDLL builds". Please Help!!! thanx
|
|
|
|
|
|
|
i mean that i draw something on a DC(CDC).
then i need to save this to a .bmp file.
that is to say, how to find the BITMAPINFO structure?
|
|
|
|
|
You must compute the bitmapinfo structure in your program. This is a "To Do". Read the MSDN and don´t ferget the 'DWORD' Alignment!!!
Try this @ home. (B&B)
|
|
|
|
|
Thanks.
Can you tell me where I can find the details about this in MSDN?
And how can i compute the bitmapinfo structure about a DC?
Best Regards...
|
|
|
|
|
If you use the visual studio press F1 else try the online docs from MSFT.
If you 'maybe' find the bitmapinfo you will read that this info contain the measures about the bitmap. A nice function is also "GetDIBits".
Try this @ home. (B&B)
|
|
|
|
|
ok.Thanks.
I have download a program coding with VC++6.0,
It use GetDibits() function as you say.
http://www.codeguru.com/bitmap/window_to_file.shtml
Now,i will study these documents and functions at first... thanks you very much..
|
|
|
|
|
I have a thought to make the speaker to speak at a special time. That is:
1.Set RTC timer alert time at a special time;
2.Then the RTC timer triggers the speaker to speak.
This action can be done by Api functions "CreateTimer" and "OnTimer".
But I don't want to use this way, how to do it?
I use VC6.0
Thanks in advance!
|
|
|
|
|
shalala wrote:
This action can be done by Api functions "CreateTimer" and "OnTimer".
But I don't want to use this way, how to do it?
Use the shell to start a batch-file at your specific time?
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
can you tell me more details
or even some samples?
Thanks
|
|
|
|
|
Well, you simply need to get a batch-file to do what you want (e.g. reading a text or playing a *.wav).
Then you can use "scheduled task" to start that .cmd at the time you want.
Please read the help about scheduled tasks, as I am no expert, just a user.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Could somebody tell me how to call the shell function in vc6?
Thank you again
|
|
|
|
|
ShellExecute(...)
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
I have a try.
Thank you!!!
|
|
|
|
|
I have a Video system and I want to display permanently images that come from it when I run my application. Solution seems to be Direct Draw with 2 graphic board or a DUAL one. It is not really a problem, I suceed. But, there is a point that worry me. It is obvious that when my application is running on one monitor we will display video image and on the other normal interface and I'd like seeing mouse only on the normal inteface. But if we attach all the graphical boards to the desktop the mouse is moving on the 2 screen, I am afraid that is too confusing for customer. I'd like then use one board attach on the desktop (we need at least one anyway) and the other is sleeping, excepted when my application is running then it will display video. In term of programing that means we need to call Direct draw with the good board device. the function DirectDrawEnumerateEx is all what we need. It works well if all the board are attached to the desktop (that is to say we see all the board device) but any of the boards are not attached then I don't succeed in seeing them. However there is a flag DDENUM_DETACHEDSECONDARYDEVICES that seems to be specially provided for that use but it do not return anything about the detached devices. Is anyone can help?
I have a Video system and I want to display permanently images that come from it when I run my application. Solution seems to be Direct Draw with 2 graphic board or a DUAL one. It is not really a problem, I suceed. But, there is a point that worry me. It is obvious that when my application is running on one monitor we will display video image and on the other normal interface and I'd like seeing mouse only on the normal inteface. But if we attach all the graphical boards to the desktop the mouse is moving on the 2 screen, I am afraid that is too confusing for customer. I'd like then use one board attach on the desktop (we need at least one anyway) and the other is sleeping, excepted when my application is running then it will display video. In term of programing that means we need to call Direct draw with the good board device. the function DirectDrawEnumerateEx is all what we need. It works well if all the board are attached to the desktop (that is to say we see all the board device) but any of the boards are not attached then I don't succeed in seeing them. However there is a flag DDENUM_DETACHEDSECONDARYDEVICES that seems to be specially provided for that use but it do not return anything about the detached devices. Is anyone can help?
Gwen
Gwen
|
|
|
|
|
i wan to output images which are coded basically in arrays of 1(presence of a bit)and 0(absence of a bit) to my SDI view, is there any samples around? not sure if it is something like cellular automata method...i am a beginner so need help in coding arrays and how to output in colour oso, for instance, i have a square which is an array of ones... how to show in on the SDI view and where should i code it coz i need to take in parameters from other dialogs. thanx
|
|
|
|
|
I created a modeless dialog with an accelerator table, but for some reason PreTranslateMessage is not called, so my accelerator keys are not translated to messages. Anyone knows why PreTranslateMessage is not called, or how to solve this problem?
|
|
|
|