|
Is that a CString? Have you tried something like this instead?
CString str(_T("Hello world"));
str += TCHAR(0x0D);
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Thanks..
Applying your suggestion removed my problem
|
|
|
|
|
VCProgrammer wrote: Applying your suggestion removed my problem
But only temporarily... try to understand what the error means and what this solution means. That would solve your problem permanently.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
VCProgrammer wrote: i was trying to concatanate 2 strings using this line of code
VCProgrammer wrote: 0x0D
The above is NOT a string.
What about str ? you give us little clue about its actual type.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all,
i need some information on:
How to invoke Microsoft Outlook create new profile dialog from my own application?
I have an MFC app. it should look for mycrosoft out look’s profiles and invoke the outlook’s create new profile dialog.
Please I really appreciate if some one can give some ideas and pointers.
Thank you in advance
|
|
|
|
|
See [here^] for the APIs MAPILogonEx and LaunchWizard
|
|
|
|
|
|
I am not able to find LaunchWizard API
i need to include the header file
plz can u tell me whats the header file for the same?
i didnt find anything in google
thanks in advance
|
|
|
|
|
yaar thank you
i found it
thanx for the help ... it really worked for me
|
|
|
|
|
Hello All,
I have send email from one PC in background with file attached to any mail id.. (yahoo / gmail / hotmail).... let me know any clues..
Thanks
BlrBoy
|
|
|
|
|
Does this[^] help?
Regards,
Sandip.
|
|
|
|
|
If you have already "send" the e-mail, what's the problem?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
I am learning vfw library these days. And I'm trying to use vfw to decode wmv3 stream. but ICDecompress always returns 0xffffff9c . I can't find out the reason ... Any one could tell me how to do that ?
thanks .
code below :
typedef struct
{
BITMAPINFOHEADER BIH;
char SequenceLayer[6];
}WMV3BitmapInfoHeader;
BITMAPINFOHEADER BITM;
WMV3BitmapInfoHeader WMV3;
byte SequenceLayer[] = {(byte)0x0f, (byte)0xf1, (byte)0x80, (byte)0x01, (byte)0x40, (byte)0x0f};
memset(&WMV3, 0x00, sizeof(WMV3));
WMV3.BIH.biSize = sizeof(BITMAPINFOHEADER) + 6;
WMV3.BIH.biWidth = 320;
WMV3.BIH.biHeight = 240;
WMV3.BIH.biPlanes = 1;
WMV3.BIH.biBitCount = 0x18;
WMV3.BIH.biCompression = mmioFOURCC('w', 'm', 'v', '3');
WMV3.BIH.biSizeImage = 0x038400;
memcpy(&WMV3.SequenceLayer, &SequenceLayer, sizeof(SequenceLayer));
wmv9vcm = LoadLibrary("wmv9vcm.dll");
DriverProc = GetProcAddress(wmv9vcm, "DriverProc");
ICInstall(ICTYPE_VIDEO, mmioFOURCC('w', 'm', 'v', '3'), (LPARAM) DriverProc, NULL, ICINSTALL_FUNCTION);
hIC = ICOpen(ICTYPE_VIDEO, mmioFOURCC('w', 'm', 'v', '3'), ICMODE_DECOMPRESS);
ICDecompressBegin(hIC, &WMV3, &BITM);
memset(&BITM, 0x00, sizeof(BITM));
BITM.biSize = sizeof(BITMAPINFOHEADER) + 6;
BITM.biWidth = 320;
BITM.biHeight = 240;
BITM.biPlanes = 1;
BITM.biBitCount = 0x18;
BITM.biSizeImage = 0x038400;
ICDecompress(hIC, 0, &(WMV3.BIH), buf+i, &BITM, output);
|
|
|
|
|
havent you setup BITM properly before ICDecompressBegin or what does it what return
Greetings from Germany
|
|
|
|
|
Hi,
everybody I have designed a webcam project in vc++.It works good.But I want to handle the event that is generated when button of webcam is pressed.Can anybody suggest me anything about this.
modified on Thursday, October 30, 2008 2:49 AM
|
|
|
|
|
Reverse Engineer the software or get the sdk for the camera you're using.
Use Spy++ or Winspector Spy++ and OllyDbg/IDA Pro.
And please, for heaven's sake - who made the camera and what's the model number?
|
|
|
|
|
I've a user defined message defined as :
#define UDM_TREEITEMCHECKBOX_CLICKED (WM_USER + 3)
the handler is :
LRESULT CTreePropSheet::OnTreeItemCheckBoxClicked(WPARAM wParam, LPARAM lParam)
{
--
}
When I modify the user defined message as :
#define UDM_TREEITEMCHECKBOX_CLICKED (WM_USER + 1) //(which is unique and no other user defined message is defined so)
then,
there is a crash in my application.
A snippet of the call stack contents looks like this :
For (WM_USER + 3) : (Successful case)
TreePropSheet::CTreePropSheet::OnInitDialog() line 773
CPropertySheet::HandleInitDialog(unsigned int 460026, unsigned int 460026) line 1209 + 14 bytes
CWnd::OnWndMsg(unsigned int 272, unsigned int 460026, long 1452200, long * 0x0013f03c) line 1815 + 17 bytes
CWnd::WindowProc(unsigned int 272, unsigned int 460026, long 1452200) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x0013f438 {TreePropSheet::CTreePropSheet hWnd=0x00080500}, HWND__ * 0x00080500, unsigned int 272, unsigned int 460026, long 1452200) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00080500, unsigned int 272, unsigned int 460026, long 1452200) line 368
AfxWndProcBase(HWND__ * 0x00080500, unsigned int 272, unsigned int 460026, long 1452200) line 220 + 21 bytes
For (WM_USER + 1) : (Unsuccessful case)
TreePropSheet::CTreePropSheet::OnTreeItemCheckBoxClicked(unsigned int 1, long 0) line 1148 + 14 bytes
CWnd::OnWndMsg(unsigned int 1025, unsigned int 1, long 0, long * 0x0013e310) line 1815 + 17 bytes
CWnd::WindowProc(unsigned int 1025, unsigned int 1, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x0013f438 {TreePropSheet::CTreePropSheet hWnd=0x001a0222}, HWND__ * 0x001a0222, unsigned int 1025, unsigned int 1, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x001a0222, unsigned int 1025, unsigned int 1, long 0) line 368
AfxWndProcBase(HWND__ * 0x001a0222, unsigned int 1025, unsigned int 1, long 0) line 220 + 21 bytes
Actually, in Successful case, the OnTreeItemCheckBoxClicked() is not required to be called (as is happening in Unsuccessful case) because the event
(of clicking tree item) as such has not occurred at all.The crash arises before launch of my dialog (which contains the tree control) itself.
Can the cause of the crash be figured out from the call stack contents ?
It appears that third and fourth (or either) parameters of the following function is causing the problem
AfxWndProcBase(HWND__ * 0x001a0222, unsigned int 1025, unsigned int 1, long 0) line 220 + 21 bytes
But, AfxWndProcBase() is a function called/modified by the Application Framework.
What can I do to avoid the crash with (WM_USER + 1) ?
Or is there any other justifiable reason for not using (WM_USER + 1) ?
Any help would be appreciated.
Thanks in Advance.
|
|
|
|
|
SherTeks wrote: Or is there any other justifiable reason for not using (WM_USER + 1) ?
Read here[^]
and here[^]
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
Thanks for the reply.
The message was probably getting sent from one window to other bcoz
the crash occurred after I clicked 'Ok' of one dialog and before the other
dialog was launched.
Defining WM_APP in lieu of WM_USER worked fixed the problem.
|
|
|
|
|
SherTeks wrote: #define UDM_TREEITEMCHECKBOX_CLICKED (WM_USER + 1) //(which is unique and no other user defined message is defined so)
Are you 100% sure? The answer may surprise you.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi,
I need to develop an application which would connect me to a telnet server for only one command DIR and display the directories in a tree view.
Here I am not supposed to use the command prompt window.
All the programs including Puttyhttp://en.wikipedia.org/wiki/PuTTY[^].. open up a command prompt when trying to connect to a telnet server.
Could you please help me up with some sample articles.. or what to search for..
Priya Sundar
|
|
|
|
|
Priya_Sundar wrote: Hi,I need to develop an application which would connect me to a telnet server for only one command DIR and display the directories in a tree view.
Can you use CFtpFileFind for this, or this?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi all,
I have a COM project which stores its properties with an OLE Property api... I'm not even sure of the terminology, so google isn't helping.
Basically, the program loads / stores properties in an XML file.
How do I load this xml file? The API call when a user-interface is generated for these properties is "OleCreatePropertyFrame(.......)"
Thanks
[edit] even pointing me in the right direction to learn more about ole property etc. stuff.
modified on Wednesday, October 29, 2008 5:47 PM
|
|
|
|
|
hi,
is there any function, library or just trick how to get information
if HDD in system is SATA or PATA?
thank you
viliam
|
|
|
|
|
A trick: check the cable.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|