|
Look Buddy Like this way.
char str[]="alok gupta"
::sendMessage(MSWINDOW,WM_USER_123,0,(LPARAM)&str);
i think i am sending message to M$
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
One solution is dynamic allocation.
Kuphryn
|
|
|
|
|
hello,
I would like to use try and catch (or __try and __except) to manage an exception which is "Unhandled Win32 Exception". Who can tell me how to proceed in an MFC environnement ?
thanks a lot for your help and a nice day to everybody !
There is no way to happiness, happiness is the way !
|
|
|
|
|
You can use try-catch blocks in MFC to catch unhandled exceptions. Remember, all MFC exceptions are inherited from base class CException
ARSALAN MALIK
|
|
|
|
|
Hi thank you for your answer !
The problem is that I want to manage a Win32 Exception and not a MFC exception ...
Do you know how to do that ?
Thanks a lot for your help and have a nice day !
There is no way to happiness, happiness is the way !
|
|
|
|
|
Hi everyone!!
I want to read a table of a .xls (Excel2003) file from my Vc++6 application, how can I do it? It´s not necessary to open Excel, just read the file. If you know solutions for my problem, please tell me.
Thanks a lot!!!
Today could be a great day!
|
|
|
|
|
if you know the layout of your table you can use FILE/fscanf, fopen etc....
if it's all a bit complicated you're off for some more difficult stuff like automation.
You can probably use CFile (and functions) instead of FILE/fscanf etc.
Search MSDN for more info.
good luck.
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
thanks for your answer
what I didn´t know is that I can read a .xls file as a .txt (e.g) with CFile functions. Is data processed in the same way?... Would it be better if I export the table as a XML file?
Now I´m trying to do it using automation, and collecting information from MSDN.
thanks
|
|
|
|
|
aliole wrote:
Now I´m trying to do it using automation, and collecting information from MSDN.
Then you've no doubt seen MSDN article Q178749.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Check the database section on CP, it has some usefull classes or code snippets that does read from EXCEL.
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
hallo
i want make an special combobox control (like windows make when
we open a file with editbox )
in fact i have trying with a normal combobox:
//void CXcomboDlg::OnEditupdateCombo1()
//{
//CListCtrl *m_List = new CListCtrl;
//m_List->Create(WS_VISIBLE | WS_BORDER , //CRect(118,110,283,300),this,IDC_LIST_TABLE);
//m_List->SetExtendedStyle(LVS_EX_GRIDLINES|LVS_EX_FULLROWSELECT);
//MessageBox("DDDDDDD");
//delete m_List;
//}
1) i have problem with dynamically using CListCtrl
2) and i dont know is it an ready control that make that or not
thanks
mlabidi
|
|
|
|
|
Hi,
I'm trying to implement bulk insert using CRecordset derived class.
I'm now in a position that I can bulk update and delete exists records, but can't add new. The strange thing is that I can add #x records where x is the number of exists records in that table. It means that the Open method of the CRecordset (actually the Move method) 'mark' something that make the allocated bulk buffer valid for add/update/delete operations, but when the table is empty no buffer records has this 'mark' and the add fails. The problem is that I can't find the way to do this 'mark' myself. I tried to change the status array values to SQL_ROW_PROCEED but it didn't work.
Can anyone please help ? code will be appreciated...
|
|
|
|
|
How can I send a pm from yahoo messenger? Anybody can help me?
|
|
|
|
|
IS Yahoo PM related with VC++
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Ofcourse yes! I've a project and I need 2 send some data to someone's yahoo IM ID, using Yahoo! IM online.
Is this ok?;)
|
|
|
|
|
Yeah,you are right.
as far i know yahoo doesnot provide any open source support for developer.i think you have to this by hacking into process space of yahoo messenger.
yeah yahoo provide sending of Datafiles from one computer to other using messenger may be you find some hack there.
good luck
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Hello, buddies,
My program is a Win32 screen-saver program(ie, .SCR file), during its running process, it will launch another Win32 program to do certain things, and after this screen-saver program exits, that Win32 program may pop up a window for showing some information to the user.
Here's my problem: on the WinNT-based platform (WinNT/2K/XP), when the screen-saver is set to be password protected (ie, the user needs to input the password to login the system after the screen-saver exits), the Win32 program which launched by the screen-saver is immediately terminated also when the screen-saver exits, so that Win32 program doesn't have the opportunity to show the information dialog.
It's seem that That Win32 program is terminated by the system when the screen-saver ends, and this's maybe relate to something like "desktop switch", because the password-protected screen-saver is running on the so-called "screen-saver" desktop, and the other program launched by the screen-saver is also running on this desktop, the screen-saver ends, the "screen-saver" desktop disappears, so the other program dies as well...
The above is my opinion for this problem, so I tried to do somethings like switch the desktop in the screen-saver and the other program, but failed, that problem still exists.
So, does anyone can tell me: How to let the another program still run after the password-protected screen-saver ends?
Thanks!
|
|
|
|
|
I have an MFC application that loads data from a database. I created a user interface thread based on CWinThread that displays a modal dialog with a text box and a cancel button. The user can click the cancel button to abort the load. The load takes place ( and the dialog is created ) in the OnNewDocument handler of the main app. The first time it works perfectly but if I click File New the UI thread gets stuck in the dialog creation code somewhere and the dialog is not displayed. When the load function completes it does a PostThreadMessage to the new thread sending a WM_QUIT message and waits for the UI thread to close. Because the UI thread is stuck it doesn't respond and the application stalls.
Any ideas?
|
|
|
|
|
Hi,
Put a break point @ on new document & Oninitdialog of the dialog and check where it is getting struck. Sometimes the callstack may give you more information regarding the location.
Have a look @ this link on UI Threads it will surely help you
http://flounder.com/uithreads.htm.
This may help you
Sujan
|
|
|
|
|
Make it a modeless dialog instead. Even if you do keep it in the secondary thread.
Then you can just hide and show it, and each time the OnFileNew is called, you won't have to keep trying to create/destroy a window.
|
|
|
|
|
hello...
does any of you have any idea how to hide or close the console window without terminating your whole process? I've been experimenting lately with Win32 console application with MFC support... My rpogram basically communicates with a RAID system through the serial port.
My program is already working fine but I wanted to hide the console window while my program is running. Is there a way to hide the console window and just display my UI?
if any of you have any idea, you can reply to this post or email me personally...
my email add is dimitri_sjp@yahoo.com
thanks !!!
sunrise... sunset... sunrise... sunset... sunrise... sunset...
|
|
|
|
|
You should create Win32 or MFC application to hide console.
ARSALAN MALIK
|
|
|
|
|
megiddo wrote:
...does any of you have any idea how to hide or close the console window...
Which console wiondow?
megiddo wrote:
Is there a way to hide the console window and just display my UI?
If you have a handle to the console window (e.g., GetConsoleWindow() ), just send it a WM_SHOWWINDOW message.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Dear friends,
I want to add "scripting support" in my application. i.e i want the end users to write the code at run time and then i want my application to execute it. I also want to pass the parameters to the scripts and want scripts to call back the methods in my application.
Can anyone tell me what is the best approach to follow ???
Imtiaz
|
|
|
|
|
I just did this by working from the article at
http://www.microsoft.com/mind/0297/activescripting.asp
Good luck...
|
|
|
|