|
Do as suggested but instead of having "Auto" selected when importing change that to "Custom".
You can now specify a custom name like "bmp24" for inclusion. This will treat the bitmap as binary and will not convert it.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
it workz.....
thanx a lot.....
|
|
|
|
|
Thats just Visual Studio's rubbish bitmap editor. Create a Bitmap resource, close the resource editor, and overwrite the file that corresponds to your resource with your new one. It will work fine then. I do this in my current project.
using System.Beer;
|
|
|
|
|
it workz.....
thanx a lot.....
|
|
|
|
|
Already people have explained you about it now before I could write anything
Look the Visual Studio Resource Editor is not able to display 24 bit BMP's But you can add them and use them. But while developing you wont be able to view or edit them in Visual Studio Resource Editor.
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
(My COM Blog - http://lovecom.blogspot.com)
modified 21-Apr-21 21:01pm.
|
|
|
|
|
Hy folks,
i'm a big greenhorn, so don't laugh: When i compile my cpp-Project everything's fine. But if i start it, the error
---------------------------------------------
Microsoft Visual C++ Debug library
Program: ..\test.exe
File:filecore.cpp
line:258
For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
---------------------------------------------
What did i wrong?? Thanks for your help.
T.
|
|
|
|
|
I think your File Handle is NULL. Let me know if you are doing any file operation in your application. If yes, then verify the Handle validity.
-------------------------
Have a great day ahead!
Regards,
Sohail Kadiwala
(My COM Blog - http://lovecom.blogspot.com)
modified 21-Apr-21 21:01pm.
|
|
|
|
|
SamuelTee wrote:
i'm a big greenhorn
SamuelTee wrote:
Microsoft Visual C++ Debug library
Program: ..\test.exe
File:filecore.cpp
line:258
For information on how your program can cause an assertion failure, see the visual c++ doc on asserts.
I like to see you test.cpp,tell me it is Console application or any MFC based application.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
SamuelTee wrote:
What did i wrong??
You attempted to use CFile::Seek() with an invalid file handle.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Using VC6/MFC
I've coded a wizard dialog, and am trying to get the OnWizardNext function in the wizard pages to perform as described in MSDN. According to the documentation:
- returning -1 tells the wizard dialog not to change pages
- returning 0 tells the wizard dialog to move to the next page in the sequence
- returning any other (positive) value tells the dialog to move to page in the chain indicated by the return value.
Returning -1 and 0 works fine, but returning any other value acts as if I'm returning -1. I've verified that the value being return is the value I'm expecting, and I'm not calling the base class' version of the function.
Can anybody provide any hints as to what I might be doing wrong?
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
"0 to automatically advance to the next page; 1 to prevent the page from changing. To jump to a page other than the next one, return the identifier of the dialog to be displayed."
Are you passing the ID, or the index of the page?
You could always call SetActivePage in the OnWizardNext if neither the resource ID or page index works...
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
the other value is the resource ID of the next dialog you want to display.
I've had the same problem a couple weeks ago ... bloody MSDN ...
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Grrrr...
Thanks guys.
------- sig starts
"I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hello, I would like to have the text of the static control printed in red (just for one of them on my dialog). Is it possible to do that without subclassing the control ?
Thanks
|
|
|
|
|
1) Assign an ID to the static control you want to have the red text. (i.e. IDC_REDTEXT_STATIC)
2) Add a handler for OnCtlColor in your dialog.
3) Check for the control ID in OnCtlColor, and update the device context text color to red:
<br />
HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)<br />
{<br />
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);<br />
<br />
if (pWnd->GetDlgCtrlID() == IDC_REDTEXT_STATIC)<br />
pDC->SetTextColor(RGB(255,0,0));<br />
<br />
return hbr;<br />
}<br />
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
Ok thanks a lot, that worked
|
|
|
|
|
following code is table open.
//myado.h
_ConnectionPtr m_pConnection;
_RecordsetPtr m_pRecordSet;
//myado.cpp
m_pRecordSet1->Open
("EntryDateTime",variant_t((IDispatch*)
m_pConnection,true),adOpenKeyset,
adLockOptimistic,adCmdTable);
if recordset open using select statement(eg:select * from EntryDateTime where pno=1) ,how i do ???
pls explain me...
|
|
|
|
|
i would like to know how to progamatically find the process ID for an TCP connection on a WIN2K system. Windows XP uses AllocateAndGetTcpExTableFromStack() for that purpose but this function call is undefined in Win2K.
But programs like tcpview, activeport is able to find the pid in Win2K also...
Does any1 know how to do it?
Thanx in advance...
|
|
|
|
|
Hello!
I have got the following problem!
Ich have written a Dll for a Socket Connection. This Dll call a callback function when it receives a Msg over the net.
The function which is called from the dll is a global function in my Testapplication. The global function calls my receive function which only copys the msg in two Membervariablen from the Dialog. These Membervariablen are undefined (Debug shows: ???) and the program crashs.
Global receive function
void gReceiveMsg(CMsg *pMsg)
{
((CSocketTesterApp*)AfxGetApp())->CallbackReceiveMsg(pMsg);
}
function in my application (the values are received correct )
void CSocketTesterApp::CallbackReceiveMsg(CMsg *pMsg)
{
CString sVar = "";
double nVal =0;
pMsg->GetData(&sVar,&nVal);
((CSocketTesterDlg*)AfxGetMainWnd())->ReceiveMsg(sVar,nVal);
}
receive function in my Dialog
void CSocketTesterDlg::ReceiveMsg(CString sVariable, double nValue)
{
m_sRecVariable = sVariable;
m_nRecValue = nValue;
UpdateData(FALSE);
}
The Program crashs after the assignment to the membervariable.
I hope someone can help me!!!
king regards
Jens Lüddecke
|
|
|
|
|
I’m using a CTreeCtrl to display an hierarch structure of a database. Is it possible to allow the user to select multiple items using for e.g. “shift” and “ctrl”?
Thanks / Anders
_____________________________
...and justice for all
APe
|
|
|
|
|
I don't think it's in the standard CTreeCtrl behaviour; google for CMultiTree it handles multiselection.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hi,
I want to hide the opening MFC Dialog ,when open the Application.
How do I do that?
If any one know this please reply..
Thanks in advance.
|
|
|
|
|
Hi,
Try ShowWindow(SW_HIDE).
With Regards,
Selvam
|
|
|
|
|
Hain Buddy,
This Trick is provided with courtesy From Nishant S
Overide WM_WINDOWPOSCHANGED Message then Use Mr Selvam technique of
this->ShowWindow(SW_HIDE);
or Visit http://www.voidnish.com for more detail about this
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
pubududilena wrote:
I want to hide the opening MFC Dialog ,when open the Application
What "opening MFC Dialog" are you referring to?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|