|
thanks. I didnt know that. Can u tell me where it is defined?I mean which header file have the code for that?
nave
|
|
|
|
|
Naveen R wrote: I mean which header file have the code for that?
I don't know, but I am very sure about the point. Defining _UNICODE will implicitly define UNICODE too. I've been noticing sometimes people suggesting questioners to define both UNICODE and _UNICODE. But defining _UNICODE will suffice. I thought will point this out now.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
u r right..
i found code like this in some header file
#if defined(_UNICODE) && !defined(UNICODE)<br />
#define UNICODE
nave
|
|
|
|
|
how to find the IP address of systems connected to a LAN
|
|
|
|
|
How about NetServerEnum() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
i had made the simple application to insert a single record to visula foxpro table(assume that table is having only one field) using prepared statement but now when i have to insert more than one data each time i have to bind that row and each time i have to use SQLExecute function, so is it possible to insert multiple data by just using single time execution of SQLExecute() function if it is possible then plz help me.
|
|
|
|
|
I am trying to create formula field in a VC++ application at time of report generation.I want to get input from user & at run time just want to replace that formula field with user's input in report.So plz forward me corresponding link for it.
Thanks....
|
|
|
|
|
I am deaing with a project invloving huge amount of data. I am wondering what is the allowable max. value of an array in Visual C++ for Windows32 system.
|
|
|
|
|
It depends on the stack or heap size (depending on the allocation type you use).
For Instance, default stack size is 1MB, but you can change it (/STACK linker option).
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.
|
|
|
|
|
He's dealing with huge amounts of data. I don't think putting it on the stack is a very good idea....
--
Verletzen zerfetzen zersetzen zerstören
Doch es darf nicht mir gehören
Ich muss zerstören
|
|
|
|
|
Maybe it is a bad idea to deal with all the data using memory.
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.
|
|
|
|
|
It all depends on how much memory you've got, how wide your address bus is, and the datatype of your array. If you have 32 bit addresses, and your array is char, the maximum array index would be (2^32 / sizeof(char)) - 1. If it's an array of short, the maximum index would be (2^32 / sizeof(short)) - 1. If your address bus is 64 bits wide, it would be (2^64 / sizeof(short)) - 1.
It all boils down to how much memory the array needs, and how much free memory you've got (virtual memory). Last modified: 9hrs 31mins after originally posted --
--
Verletzen zerfetzen zersetzen zerstören
Doch es darf nicht mir gehören
Ich muss zerstören
|
|
|
|
|
32^2 ?
|
|
|
|
|
I meant 2^32...
--
Broadcast simultaneously one year in the future
|
|
|
|
|
hi
how to find out no of files in a folder of same extension and also i need names of it.i have the path and the extension name .
if any one know abt it plz reply
"Men never do evil so completely and cheerfully as when they do it from religious conviction"
-Pascal
|
|
|
|
|
chethu665 wrote: find out no of files in a folder of same extension and also i need names of it
Have a look at FindFirstFile(), FindNextFile() and WIN32_FIND_DATA
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
And in the end use of FindClose
|
|
|
|
|
int getFileCount()
{
int count = 0;
CFileFind finder;
BOOL bWorking = finder.FindFile("*.*");
while (bWorking)
{
bWorking = finder.FindNextFile();
count ++
}
return count;
}
'life is like a ten speed bike,most of us having gears
we ne never use' ... i want
to try those.
|
|
|
|
|
Oops.. You also need the names..
modify the function to return also the names using finder.GetFileName().
You can pass a pointer to a string array as argument and store the names in that.
'life is like a ten speed bike,most of us having gears
we ne never use' ... i want
to try those.
|
|
|
|
|
Hello
Reply from Aman Sonny seems correct.
You can get the number of file in the varible count used by Aman.
To get the name of file excluding extention use finder.getFileTitle()
method.
Abhijeet
|
|
|
|
|
Hello,
Here goes ur full solution.
int count = 0;
CFileFind finder;
CStringArray l_caryFileNames;
BOOL bWorking = finder.FindFile("*.*");
while (bWorking)
{
bWorking = finder.FindNextFile();
l_caryFileNames.Add(finder.GetFileTitle());
count ++;
}
Abhijeet
-- modified at 6:41 Tuesday 19th December, 2006
|
|
|
|
|
Hello All,
Help needed !!
Situation:
In and MDI application several child window are open.
On the event of selecting a child window ,some task is done on the selected document,previously active document and background.
Prob:
Let window A,B,C and D are open, A is currently selected and doing some work.
Now I want refuse selecting any other( or only B ) window before A is finished.
Or may be one toolbar button is pressed, so i want to refuse any other
window ( or any particular windo )to get selected.
If it is possible may plz have a guide line ?
Thank you.
'life is like a ten speed bike,most of us having gears
we ne never use' ... i want
to try those.
|
|
|
|
|
Hi all,
I have a little dialog-based application that maintains information on paintings. On the dialog where I show/edit the information pertaining to an individual painting (like the filename of the painting's image, a title, a date etc) I would like to show a thumbnail of the image. These images can be either jpeg, bmp or gif files. Anyone have any suggestions on how to do this?
Thanks in advance
William
|
|
|
|
|
|
Yes you can use of CListCtrl with CListImage but If you know C# you can see an article of Mr Mark clifton about your question on that article you can Inc or Dec size of thumbnail of images
|
|
|
|