|
unsigned 64 bit integer. Some MFC routine have been modified to return this value. If found this information in MSDN.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I'm trying to implement a Popup Static Window with WS_SYSMENU so that the window can be moved around the screen. I can create the window but the window cannot be moved. Is it possible.
Thanks.
|
|
|
|
|
make sure you're also using WS_CAPTION
And if words were wisdom, I'd be talking even more. The Offspring, I Choose
|
|
|
|
|
is it possible to create the following application using vc++?
inputs to the application :
1) IP address of a computer on a network
2) the name of the "shared" folder on that remote computer
what my application should do :
1) display a listing of all the files in the shared folder on the remote
machine
2) retrieve a file from the shared folder on the remote machine to my machine.
basically..the functionality is somewhat similar to windows explorer's 'Map Network Drive'...only..my application needs to do it.
can anyone help me out here???
thanks a lot anyways!
|
|
|
|
|
er... if i understand what you're asking, it's simple.
In windows, pretty much wherever you see a full path, you can use a network path.
For example, CreateFile will work with "\\[machine]\[share]\test.txt" as well as it'd work with "c:\test.txt". Assuming the machine, and share exists and you have permissions to access them.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
thanks for the pointer!! ..didn't realize it was that simple!
|
|
|
|
|
You can enum the files in the shared folder using the functions
CFileFind::FindFile And CFileFind::FindNextFile for example
CFileFind pFind;
bRet = pFind.FindFile("\\[Computer name]\\[shared folder]\\*");
while(bRet)
{
bRet = pFind.FindNextFile();
m_pList.AddString(pFind.GetFileName());
}
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
thanks!! ..definitely found this useful!
|
|
|
|
|
How do u combine two projects into one single project.
Example,
Programmer 1 : Programmed one dialog box for part of the whole project.
Programmer 2 : Programmed another dialog box for another part of the whole project
Now another programmer needs to combine these two projects into one. Both of them used MFC and classwizards. How does he combine the dialog boxes and everything???
Hope someone has a solution.
Thanxs.
P.S. Newbie qn....
|
|
|
|
|
Maybe this thread will give you some ideas.
|
|
|
|
|
Hi !
I've done an little client/server application which works on Windows CE.
When I launch the server on my desktop machine, I can connect a client from Pocket via ActiveSync. But at connection, the client IP address shown by the server is my desktop machine IP address. Then, when I launch the server on PocketPC, I don't have any address to connect to ! Is ActiveSync giving an IP address ? If so, how may I take it ?
Thanks for any help.
Emmanuel Derriey
|
|
|
|
|
Does anybody know how to access OLE Object data members in access with CRecordSets.
I want to store a larnge array of numbers as OLE Object data type in MS Access and than store and update the data from CDaoRecordset derived classes. How can I do that... Hints?
Thanks
|
|
|
|
|
I am trying to use a CTreeCtrl in a CDialog box.
I want to set the background colour of the tree control to the same colour as the dialog. I have tried using setBKColor(COLORREF clr), however this didn't work, I also tried getting the CDC from the CTreeCtrl and seting the color that way and it still didn't work.
Any ideas on why?
do I need so set some special property to enable me to change the background?
cheers
Andy
|
|
|
|
|
CTreeCtrl::SetBkColor works perfectly for me. The method is implemented with TVM_SETBKCOLOR, which is available on Win98, Win2000 or on systems with IE4 or later installed. Maybe you're using some ancient Windows version?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Yep it appears you are right.
What i was trying to do was get the colour of the dialog that the tree control was on, and set the background of the tree control to that colour. It appears that the setting of the tree control background was working fine, but getting the colour from the dialog was not working, it was always returning white, when I want the dodgy windows grey colour!
any ideas how to get the real background colour of the dialog.
cheers
Andy
|
|
|
|
|
::GetSysColor(COLOR_3DFACE);
And if words were wisdom, I'd be talking even more. The Offspring, I Choose
|
|
|
|
|
|
You want this:?
const int d = 100;
int var[d];
for (int i = 0; i < d; ++i)
var[i] = 0;
cout << var[5];
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Not really, even though that is the most logical way to do it. I am curious to know whether in C it is possible to substitute a piece of a variable name with something like a string. e.g:
int variable = 7;
char c[] = "able";
cout << vari%c;//no problem here b/c I'm using a placeholder or such.
ralf.riedel@usm.edu
|
|
|
|
|
RalfPeter wrote:
I am curious to know whether in C it is possible to substitute a piece of a variable name with something like a string.
No, compiled languages like C and C++ do not retain 'variable names' in generated code. Constructs like yours are generally used in scripts.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Your looking for enum() kind of functionality, as found in high level languages such as Perl and SQL. Obviously this isn't possible with a compiled language, because you'd have to ship the compiler with the application!!!
Sorry (again) thomas, but you did say you liked mail.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
Hi,
How can get the free space available in a drive?
Thanks
Neha
|
|
|
|
|
GetDiskFreeSpace() ought to do the trick.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
BOOL GetDiskFreeSpaceEx(a,b,c,d);
a = "c:\directory" or NULL. If NULL, function returns space in drive where function resides.
b = pointer to variable to receive free bytes available to user of the calling thread.
c = ditto for available (free+used) bytes.
d = pointer to variable to receive total bytes on disk.
ralf.riedel@usm.edu
|
|
|
|
|
I found a smaple code from MS. And here is the link:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q231497
|
|
|
|