|
I want to pass content of textbox created in web application(vb.net) to the textbox of the windows application. Please send the details as early as possible. Looking for your kind reply.
Shrinidhi
|
|
|
|
|
Hi I’m going to store a zipfile in a SQL database.
From my MFC-app I like to read the “binary contents” of a zipfile into a CString. The string is going to be added into the DB via a Web service call.
How can I Read a .zip-file to a CString and then back to a .zip-file?
_____________________________
...and justice for all
APe
|
|
|
|
|
Storing binary data in CString is not the way to go ahead... Strings are NULL terminated as you probably know, so Believe me if you look at the binary data as characters, you will encounter a NULL character before you reach the end of the file...
|
|
|
|
|
... yeah, of course. Hmmmmp...
I'm going to call a web service that later will store the zip-filein a SQL DB.
Have to think about this...
_____________________________
...and justice for all
APe
|
|
|
|
|
Click on the link below to 'My Articles' and look at my 'bugreporter' project. I've got code in there that saves files to the database and also extracts and recreates them on the fly.
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
Thanks! I'm having a look at it.
_____________________________
...and justice for all
APe
|
|
|
|
|
hi, i'm trying to package my console program as a static standalone, i.e. make it such that it does not require any dlls/libs on the client machine.
can someone tell me how to do it?? thanks a lot!
|
|
|
|
|
MFC as a statically linked library rather than DLL and make sure you don't specifiy an external DLLs.
Elaine
The tigress is here
|
|
|
|
|
hi, thanks for replying.
what do u mean by don't specify an external dll? i'm using oracle and so, i do have to use a certain oracl32.lib
would that be what u mean?
|
|
|
|
|
Then I think this won't be possible then. Unless you have lib file provided so you can statically link it instead of dynamically...
|
|
|
|
|
yes, i do have the lib file. u mean *.lib right? i have that. so how can i statically link it?
|
|
|
|
|
Normally (but I'm not sure), you can go to the project settings somewhere and specify all the libraries you are using. But I don't remember exactly where and I don't have VC++ installed here...
|
|
|
|
|
i've already done the settings. the problem arises when i try to use another computer that doesn't have the libraries already installed.
when i do so, the program won't work and it will complain that the libraries are not available. the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating.
please help, i'm tearing my hair out!
|
|
|
|
|
ng kok chuan wrote:
the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating.
?? Uhh... Why ?? An active X can use external dll, what is the problem here ?? You just need to ship all the files
|
|
|
|
|
it's cos the other files can't be installed as dlls. i'm using dlls from oracle and visual studio c++, and in order to use those dlls, it requires oracle and vc++ to be installed. i've tried registering the files manually but it doesn't work. hence the requirement to package as a static file instead of using dlls.
sigh, weird solution to a weird problem...
|
|
|
|
|
there is a way of creating ur own user defined messages .....can some one give me any linkz regarding that?.....
cheerz.....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
Try this one,
www.codeproject.com/dialog/messagemgmt.asp
Grenouille
|
|
|
|
|
|
thankz everyone!
cheerz.....
"faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
|
|
|
|
|
I use RegisterWindowMessage() for this.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hi all
i don't know how to send messages to other windows or active window...i think i have to have HWND of other windows and then just use API function sendmessage()///but...
please help me
thanks///
|
|
|
|
|
|
First you get the HWND of the window you want. You use a function like FindWindowEx to do this. Using Spy++ is great for figuring out your window hierarchy. Usually you want to get a window by the third parameter, the class because it doesn’t change like the text can change. Here is a short example:
HWND hNotepad = FindWindowEx(0, 0, "Notepad", 0);
if(hNotepad)
SendMessage(hNotepad, WM_SETTEXT, 0, (LPARAM) "Hah, I found you!");
else
MessageBox(0, "Couldn't find notepad.", "Darn", MB_OK);
|
|
|
|
|
so i know API function FindWindowEx but this function only finds other windows that we knew window's name.But i want to send messeages to other windows that i don't know window's name///
waiting...
thanks for...
|
|
|
|
|
Perhaps you're looking for EnumWindows(). Check it out.
|
|
|
|