|
My string is type CString not a character array. Any Ideas??
|
|
|
|
|
CString temp;
temp.Format("%ud", uLong);
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
CString text;
text.Format("%ux", cnt);
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
I assume you are using MFC.
cnd = 0xFFFF0000;
CString strValue;
strValue.Format("%X",cnt);
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
|
You could use the standard library:
unsigned long cnt = 0xFFFF0000;
TCHAR tszString[16]; // Arbitrary size
_stprintf(tszString, _T("%8.8X"), cnt);
Sorry, just read your CString post:
CString strString;
strString.Format(_T("%8.8X"), cnt);
|
|
|
|
|
How To Create new "DBase" database without entering in ODBC Administrative tools.
What exactly i want - is to create new dbase file in any directory i choose, and do it in my programm. And the full story is about creating ESRI shape file. It needs 3 files, one of them is "*.dbf",i have to convert from my dataformat to ESRI Shape format. And the lase problem is in creating DBase file!!!
Please help...
|
|
|
|
|
In order to create a new dBase file, you must have the appropriate program, in this case, dBase PLUS would sound suitable. Alternatively, you can try to use the dBase SDK provided on their home page, and see if it can create an empty database file for you. I doubt it, however.
The ODBC is just a data connectivity method, that allows you to create DSN (Data source names) for existing data sources. You cannot create new data placeholders through ODBC, only DSN definitions that can be used to access the existing sources.
Naturally, you could try searching the Web for a description about the dBase *.dbf file format and then attempt to convert your old dataformat into a format suitable for ESRI Shape format. Checking ESRI homepage might also be helpful.
But, if you need to reliably create a new dBase file, you must have the actual program.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
See the following code snippet on how to create a dBase III compatible file.
onwards and upwards...
|
|
|
|
|
Hi ,
Iam trying to display an image to screen which contains Lines drawn at 45 degrees(Slanted Lines)to screen .I display it to screen by calling the "PlayEnhMetaFile" Function..When I run my application & load this "Image",it is drawn correctly to the screen .But when I scroll the Image using scroll bars,the lines appears like ZigZag,not slanted any more.This behaviour comes only when the the image,goes out of the client area region or screen & comes back again while doing the scrolling.There is no problem when I Draw the image to the screen at a different position, so that It doesnt go awayfrom the clientarea while scrolling .Then the lines are not appearing as ZigZig.
Any idea what could be the cause....
Thanks
|
|
|
|
|
Hi all,
How can I incorporate external third party DLLs (don't have source code) into the final output .exe file ? (as I want to distribute the
software in one single file)
Thanks
|
|
|
|
|
simply not possible, only thing you can do is loaded it dynamically and use its apis, that too only if you know what are its calling convention, its return type and parameter list, you need a header file.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
Ow I think you can do it, just check on google for "DLL to Lib", it's a tool to convert DLLs into LIB files, then you can link the produced LIB code statically inside your exe
Cheers
GuimaSun
www.nexsun.com.br
|
|
|
|
|
One possibility:
Embed the DLLs as custom resources into your executable. The first time your exe runs, it needs to extract and write the DLLs out to the same directory as your application before using them. This would mean you have to use dynamic linkage.
Roger Allen - Sonork 100.10016
Roger Wright: Remember to buckle up, please, and encourage your friends to do the same. It's not just about saving your life, but saving the quality of life for those you may leave behind...
|
|
|
|
|
Darn, Roger... you beat me to it! Darn phone call!
onwards and upwards...
|
|
|
|
|
Hi,
Are there any good window installers for installing VC++ 6.0 software,
(should be cheaper than InstallShield) ?
Thanks
|
|
|
|
|
Try with download.com. search installer.
By the way you can download a better software
1) "Install Creator".
It is a free software and cheap to use.
2)"Install us"
Mehdi Hosseinpour
|
|
|
|
|
Try Thundersetup from CMware:
http://www.cmware.de/
Andy C
|
|
|
|
|
I use Inno Setup 4. http://www.jrsoftware.org/isinfo.php
It's free and you can edit it. It is nothing more than a script compiler but comes with a setup wizard.
Win32newb
"Making windows programs worse than they already are"
|
|
|
|
|
is it possible to run an raw file using c or c++ program
shiva shankar
|
|
|
|
|
raw files ? what does the raw file contain?
MSN Messenger.
prakashnadar@msn.com
|
|
|
|
|
i am talking about .raw audio file playing thru c or c++ program
|
|
|
|
|
The data comprising the program must first be saved to disk. At that point, you can employ CreateProcess() or ShellExecute() to run the program.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Are you talking about playing .raw audio files?
AFAICR, this is raw signed PCM format, with no header. If you google on
.raw and audio you might find something to help with constructing a header so you can play the sound. You'd have to use relatively low level multi-media API calls, though.
Steve S
|
|
|
|
|
I want to exact installation root of my MFC application as a CString format.
Like str="D:\Program Files\Test\test.exe"
How can i do it? Or how can i can find root of my MFC EXE program.
Mehdi Hosseinpour
|
|
|
|