Hello, I try to do a simple application where I can drag and drop pictures. I'm trying to use the COleDropSource class, and it's member function ::CacheData() as I read it in the Help, but I get an error message like this "CacheData is not a member of COleDropSource". What did I do wrong? Is that the right way or is there something easier/better to do it? Can anybody help me or give me an example of code that actually works? Thanks JET
jetournier
Posts
-
drag and drop -
VC++6.0->VC++.NETI'm sorry I used the word DLL, but it is LIB that I meant: I had all the dll required, only LIBs were missing
-
VC++6.0->VC++.NETI've got troubles to build a project (in debug mode): under VC++6.0 it works very well, but when I try to compile it on another PC with VC++.NET, I got some link issues: mfc libs were missing (msc42d.lib, mscn42D.lib....). When I finally got all that missing dlls, I had this message: "external unresolved: _iid_iactivescriptdebug" and "external unresolved: _iid_iactivescriptparse". Wich I suppose are defined in another (more recent) version of these dlls. Anyway, does anybody have a clue to this pb. Maybe I didn't install well the .NET software, but I reinstalled it with all the options I found, and it didn't help... Please HELP..............
-
serial link question (COM port on pC)hello, Does anybody know how to fix the error that I sometimes get with my application: the error is the nb 995 with the GetLasterror() function, and it says in the help:"when a I/0 operation is interrupted". My application is almost like a ping on a serial link of a PC to a special device: it writes a byte and then read the serial link to see if an answer is coming. It waits around 10 ms, and if nothing is arrived, it tries again. But sometimes, the fonction that reads the file that stores incoming data returns with this error 995. It can not happen a hundred times, but the one time it happens, it blocks everything(I mean my application cannot write/read on the serial link anymore), even if I exit from the application and come back it will happen again until I reboot my PC, and then everything is back to normal. Please, HEEEELPPPPP!!!! sojijolan
-
serial com port transmissionI developped a program to communicate on serial port com. It works fine on xp/W2000. Then I wanted to include this into a bigger project, so I decided to change it into a dll. It works fine on W2000, but the same application using the same dll sometimes doesn't work on WXP. When I say it doesn't work I mean that the thing that reiceives the data transferred on the serial link acts as if the flow (115200 bauds) was interrupted sometimes. The priority level of the emission thread is equal to the reception one: THREAD_PRIORITY_HIGHEST. So it should not be interrupted I think. Unless the fact that it is a dll's thread changes the situation? Does anybody have an idea? Thanks
-
communication on serial port comI developped a program to communicate on serial port com. It works fine on xp/W2000. Then I wanted to include this into a bigger project, so I decided to change it into a dll. It works fine on W2000, but the same application using the same dll NEVER works on WXP. Does anybody have an idea about what could happen? When I say it never works I mean that the thing that reiceives the data transferred on the serial link (I see the data transferred via a spy on the link) does'nt act as it really reiceived everything OK. I mean all the data are transferred, but it acts as if the flow was interrupted sometimes. THANKS for your help!!!!
-
is there a way to run programs with other programs?thanks but: findwindow and sendmessage can't work (I think) as I can't access the source code of the program I want to run(I want to run it with a program but the way a user could run it, and modify comboboxes choices, click on button...). I'm not familiar with Spy++: I just made a few search on google as you recommended it, but it seems to show the threads that are running on the PC, the UC occupation and all this stuff so I don't understand the link with my question, could you precise your hint? Thanks
-
Export DLL to two processesI'm not sure to understand what you want to do. Do you want 2 programs to use the same function of a dll at the same time or do you want the first program to modify datas that the second will use ? The first is always possible. The second is possible if: - you use global variables (to stock your datas) - the dll must "stay alive": you have to run the second program before the first one unloads the dll.It is very important otherwise your datas will be lost. There must be another way to do it better, but I know it works as I did it this way... If the question was something else :(( , then tell it...
-
is there a way to run programs with other programs?:((Hello, I have two programs that I have to use one after another. The first one's goal is to configure data you use with the second. So I have to leave the first to use the second. And if I want to change the configuration, I have to quit the second to return in the first one, change the configuration. Then I can quit the configuration program and come back in the second program. So this is very fastidious because I always have to do the same thing twice (I always have to change the configuration once, and this is always the same thing) I don't have the source code so I cannot modify it :(( So my question is (finally...) is there a way to do a program that runs other programs and that modifies comboboxes and stuff the way a REAL user could do it?... Thank you in advance If someone did not understand what I meant please tell me too an allarc'h zo bet
-
Win 32 errorThanks for the answer. In fact the error happened before the entry point of the program, so no breakpoint could be useful. :(( It was in fact in options/settings/debug/working directory: as somebody gave me an example of a project, there was something specified that didn't correspond to a real directory on MY computer.... So I erased this line and now I can continue:-D JET
-
Win 32 errorHello Could anyone help me about the "Win 32 error 267" I get when I run a .exe I just correctly compiled with Visual C++? The associated message is: "Could not execute: invalid directory" As I'm a beginner, it may be a very stupid mistake.... Thank you in advance JET