|
|
Hi all,
I'm trying write the variable line1's value to a file, but the output in the file is:
1824896
This is what i'm trying:
String^ line1 = "082 123 4567";
char *CellNumber = (char*)(Marshal::StringToHGlobalAnsi(line1)).ToPointer();
fprintf( CRCOutput, "%s",CellNumber );
-- OR --
fprintf( CRCOutput, "%d",CellNumber );
But I still get the same result.
Can anyone help.
Thanx in advance
Programm3r
|
|
|
|
|
Looks like your printing the pointer address, try dereferencing CellNumber.
|
|
|
|
|
ok, haven't thought of that.
Thanx I'll see if that works.
Programm3r
|
|
|
|
|
TClarke,
I came right thanx I used a StreamReader
StreamWriter^ CNFwriter = gcnew StreamWriter(path);
CNFwriter->Write(line1);
Without using conversions.
Thanx
Programm3r
|
|
|
|
|
Thanks for the feedback
|
|
|
|
|
Is this a Managed C++ question?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
Can i split the movie(avi) file in to different frames?
Dream bigger... Do bigger...Expect smaller
aji
-- modified at 2:56 Thursday 13th July, 2006
|
|
|
|
|
Yes , lots of free splitter out there
|
|
|
|
|
Thanks
Can you give me some hint to it?
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
|
I want to know it how can i split in to frame???
Dream bigger... Do bigger...Expect smaller
aji
|
|
|
|
|
see if this helps Link[^]
You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
Only kings, presidents, editors, and people with tapeworms have the right to use the editorial "we."
|
|
|
|
|
Hi,
I want to add a combobox ctrl to a listctrl column.
How can i make it ?
thanks in advance...
vinsankar
|
|
|
|
|
Care to explain how enabling checkboxes will make a combobox appear?
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
|
I am using VC++6.0 and am trying to find out the charactersitics of a MFC AppWizard(exe) project that I happend to get, say, like if it was created as a single document or multiple documents or dialog based etc.,
How do you find out any project characteristics?
Can I find out from the menu bar?
|
|
|
|
|
wat do you have in ur hand???
Is only an exe???
Dream bigger... Do bigger...Expect smaller
aji
-- modified at 2:48 Thursday 13th July, 2006
|
|
|
|
|
Main classes used in different types of application in the project workspace you can see -
Dialog Based:
CXXXDlg - Derived from CDialog
CXXXApp - Derived from CWinApp
Single Document Interface:
CXXXDoc - Derived from CDocument
CXXXView - Derived from CView
CMainFrame - Derived from CFrameWnd
CXXXApp - Derived from CWinApp
Uses CSingleDocTemplate
Multiple Document Interface:
CXXXDoc - Derived from CDocument
CXXXView - Derived from CView
CMainFrame - Derived from CMDIFrameWnd
CChildFrame - Derived from CMDIChildWnd
CXXXApp - Derived from CWinApp
Uses CMultiDocTemplate
|
|
|
|
|
Thanks...
I got confused because it had so many other user-defined classes other than the standard default ones.
Thanks again
|
|
|
|
|
IMHO,If you have the source code for the project than you can check and make a wise decision after seeing the classview.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think yes i see this tool(s) in codeproject, and i think its good for your purpose
in this tool you can use from mouse for find resources in run programs (for example it can see to you
a editbox,toolbar,clasess and....)but im sorry i forgot name
whitesky
|
|
|
|
|
Dear Sir,
I have tried what Danang Suharno write, it's working but it shows one page.What to do so to show all pages in my preview screen
|
|
|
|
|
hi
i want to ask that when i include #include "Afxcmm.h" for comman controls.
and run my application it always give error as Cannot open include file: 'Afxcmm.h': No such file or directory.
plz tell me is there any setting realted to this which i need to set.
thanks
Ashish Dogra
MCA
Noida
|
|
|
|