|
|
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
|
|
|
|
|
CString tmp;
TCHAR* ptr = tmp.GetBuffer(_MAX_PATH);
::GetModuleFileName(AfxGetApp()->m_hInstance, ptr, _MAX_PATH);
tmp.ReleaseBuffer();
should do it.
Steve S
|
|
|
|
|
Hello.
well i just want to ask if anyone of you knows the implementation of solving system of linear equations by using Gauss-Jordan elimination method ( or known as reduced row echelon form ) since i need some help for my assignment.
best regards.
|
|
|
|
|
You can find the implementation of solving a linear equation pair with the Gauss-Jordan method from this page: http://www.sks99.com/ch9/gauss/defg.htm
As for the actual implementation, take a piece of paper, and write down all the intermediate calculations, then take a moment to consider how you could represent it in the C/C++ -environment. For example, if you create a program that asks as an input on the equations, or more easily, their coefficients, you can instantly write a matrix. Then follow the implementation guide, and perform similar operations on the computer matrix, as you would into a real matrix.
Remember, that computer matrixes and real matrixes tend to handle direct operations differently. Consider writing a set of functions that allows you to do matrix addition, difference, multiplication and division operations. Do not do a direct addition, as it might lead into wrong results.
As this is an assignment, I cannot give you direct code, but I can help you on by saying that a number matrix in C++ can be represented by a declaration such as int matrix_1[col][row] . Use this as a base in creating the coefficient matrixes, then just do the same calculations as the page I posted earlier. Dynamic arrays cannot be used, so you either need to create a big matrix then designate by a number of how many rows/cols are valid, or leap over to the STL routines, from which I have no experience.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
There are a lot of linear algebra C++ libraries, for example BLAS. Try google "linear algebra c++ library".
Robert-Antonio
It's a good luck, when you meet a real fink. Then you get a respect to
normal, mid-honest people."
|
|
|
|