|
It's odd!!!
I've changed the animated cursor for another one and replace it. Rebuild and back to "Can't load Wait cursor!" message.
I've double checked everything but no, still wont work. Now it seams as rebuilding isn't the issue here.
I even try to go back but to my original ani cursor still can't load it?! Then I tried to import animated cursors in the following way:
- On Insert Resources dialog box clicked Import
- Imported my animated cursors
- Specified 'ANICURSORS' as type, and clicked 'OK'
, but this too didn't give desired result. The same msg displayed.
Did anyone successfully added animated cursor (32x32 RGB/A) and got it to work in VS6? If so how?
|
|
|
|
|
I found the new way to succeed, only this lines of code do the job
HCURSOR hCursor = LoadCursorFromFile("res\\AnimatedCursor.ani");
if(hCursor)
SetCursor(hCursor);
Off course 'AnimatedCursor.ani' is the name of my source file.
But another problem appeared when running under release mode, cursor is not loading. Why?
It's a little sadly when talking to my self, isn't it?
|
|
|
|
|
Well I can get really stupid some times can I?
The file needs to be distributed along with application or it can not find and load it.
Obviously if I want it to work I need to go back and include my ani cursor in my resource.
But I cant get it to show (see previous posts). Does anybody know the solution to my problem?
|
|
|
|
|
hi guys,
i am creating a VC++ program that connect to mysql database on remote server.i have tried few steps but it didnt work.i need advice on which database i should use and it must be in a remore location.
i create a mysql database on speedhosting.co.cc but its a database for php. Is it possible for a C++ program connect to it and get data from there ??
|
|
|
|
|
Thilek wrote: i create a mysql database on speedhosting.co.cc but its a database for php. Is it possible for a C++ program connect to it and get data from there ??
Yes.
http://mysqlcppapi.sourceforge.net/[^]
Thilek wrote: which database i should use and it must be in a remore location.
If it's for writing bulk logs, go for mysql.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
i gonna create a anti-worm.. the program have to update its signatures from mysql database on the web..
anyway thanks ya i gv a try and update with u...
|
|
|
|
|
but does it work for windows??
|
|
|
|
|
Yep.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Hi all,
How to change the font,size of the column header in the report style of the list view.Any one help me.
|
|
|
|
|
Check this![^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
|
Thanks for the reply can i set the color of text ?..
|
|
|
|
|
Hello every one,
I have child - parent dialog in my application. I wants to call parent class function from child class. using WM_USER. please provide me the example code. i have already code this but having problem in realse exe.
Thank you.
|
|
|
|
|
zakkas2483 wrote: . i have already code this but having problem in realse exe.
What problem? How do you implement it.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I have Two Dialog box. Abc and Def ok. From Add button of Abc i have created Def Dialog box. I need to do some work in Abc on OK of Def.
CODE:
// Abc.cpp
#define USER_MSG WM_USER + 100
BEGIN_MESSAGE_MAP(Abc, CDialog)
//{{AFX_MSG_MAP(Abc)
ON_MESSAGE( USER_MSG, DoSomeWork )
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
void Abc::OnAdd()
{
Def d;
d.ptrParent = this;
d.DoModel();
}
void Abc::DoSomeWork()
{
}
/// From def.cpp
void def::OnOK()
{
if( ptrParent )
::sendMessage( ptrParent->m_hWnd, WM_USER + 100,0,0);
// i can do like ptrParent->DoSomeWork() but i wants to user USER MSG.
}
Thank you for your interest.
|
|
|
|
|
Why you need messages for this purpose??
You can simply do something like this..
void Abc::OnAdd()
{
Def d;
d.ptrParent = this;
if(d.DoModel()==IDOK)
{
...
}
else
{
...
}
}
I hope it helps..
BTW: Plese use code block button below posting area for posting code snippets.
Regards,
Sandip.
|
|
|
|
|
HI Sandip,
U r very right.
i wants learn metod of sending USER message.
Also i don't have member veriables for Def Dialog box. I am using GetDlgItem()
Thanks.
|
|
|
|
|
|
If your child dialog is modal dialog, then the message processing of parent wil be blocked. Better passing parent window pointer to child dialog and call the desired function.
Check this to know how to create user defined messages[^]
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
Thank you Sarath,
I have createed my child dialog as model dialog. And child dialog able to send message to parent dialog in debug mode but it is not working with Release EXE... Why it is so?
|
|
|
|
|
zakkas2483 wrote: but it is not working with Release EXE... Why it is so?
Because you are not handling the WPARAM and LPARAM.
Even if you do not wish to use them you have to handle them.
Modify
DoSoemthing()
to
DoSomething(WPARAM wParam, LPARAM lParam)
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
Yes, It's working...
After modify the defination of DoSomething( ) to DoSomething(WPARAM wParam, LPARAM lParam)
It's working find.
Thanks a lot for your kind support.
But i am not getting this think why it is working in debug mode and not with release mode. anyways thank a lot budy.. i am thankful to you.
|
|
|
|
|
Can u post code snippet for the same?
-Sarath.
"Great hopes make everything great possible" - Benjamin Franklin
|
|
|
|
|
two File ..
one
//PostDialog.cpp
#define WM_UPDATE_SERVER_LIST WM_USER + 1
BEGIN_MESSAGE_MAP(CPortsDialog, CDialog)
//{{AFX_MSG_MAP(CPortsDialog)
ON_MESSAGE( WM_UPDATE_SERVER_LIST, UpdateServerList )
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
void CPortsDialog::UpdateServerList( )
{
//do some work
}
/// function to create new dialog...
void CPortsDialog::OnButtonAdd()
{
CAddSMTPServer SMTPServer;
SMTPServer.ptrPortDialog = this;
SMTPServer.DoModal();
}
///AddSMTPServer.cpp
void CAddSMTPServer::OnOK()
{
if( ptrPortDialog ) // where ptrPortDialog is pointer to parent dialog
::SendMessage( ptrPortDialog->m_hWnd,WM_UPDATE_SERVER_LIST, 0,0);
//alternative
// ptrPortDialog->UpdateServerList( )
}
|
|
|
|
|
After modify the UpdateServerList( ) function to UpdateServerList(WPARAM, LPARAM ) it's working fine.
But i am not getting why the previouse funcation defination work in debug mode and not work for release mode.. any idea. Anyway thank you very much for nice support.
|
|
|
|