|
hi,
hi like to create splitter like below any one help me.
|----|------|
| |------|
| | |
| | |
| | |
|-----------|
thanks in advance
|
|
|
|
|
You can nest splitter windows. If you are having trouble with the hierarchy, you can plan it out in an HTML editor with tables.
J.
----------------------------
|
|
|
|
|
Is there a macro that I can use to determine if any part of a string is an 'A-Z' character.
Thank you
|
|
|
|
|
|
I am sure somebody will immediately see the reason for the error.
The rest of the program compiles and runs fine. However, when I added this new ".h" file to the program, unexpectedly it produced these two errors:
: error C2144: syntax error : missing ';' before type 'unsigned char'
: fatal error C1004: unexpected end of file found
=======================================
AFAIC, the new file is a file simply filled with macro definitions that begins:
#ifndef ABC // I'm just using a name here
#define ABC
(etc.)
typedef unsigned long DWORD
typedef unsigned char BYTE
#endif // ABC
Thanks for any help.
William
Fortes in fide et opere!
|
|
|
|
|
Maybe the new .h file is windows.h and it defines DWORD BYTE already..?
But im sure if you go through your code you will see your missing the smallist of things.. for e.g. a } to end a function thats a common mistake for EOF or not ending the quotation "ajsaf \n);
just comb through
|
|
|
|
|
|
As usual, your eyes are as sharp as an eagle's.
Thanks.
William
Fortes in fide et opere!
|
|
|
|
|
Ok this might sound weird but i can't seem to pipe the results of dir etc
all i want to do is make a win32 app that is like cmd.exe, i can work out the rest.. so how do i pipe dir etc into a buffer.. I just cant work it out and its making me crazy..
ReadConsole() only grabs what sum1 types into a console doesnt grab the output of the program.. Cheers for your help in advance
|
|
|
|
|
My instructor asked us to write a class definition and put it in
the header file. Then he gave us three files: "Speak.c", "music.cpp"
and "speak.dll". However, he did not mention how does dll work, and
where should it go?
In the .Net solution explorer, there are References, Source files,
header files and Resource files. So I put "Speak.c" and "music.cpp"
in the source files, and I created a header file for the class definition.
However, I don't know where should the dll go?
What is the Resource file and References?
P.S. I'm writing a console based program, not windows based.
|
|
|
|
|
You could put it in your
- current directory
- windows directory
- windows system directory
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I put the speak.dll into the current directory, then tried to add
the file into my current project (through solution explorer), it
gave me an error. I was trying to add it into the reference.
Did I do any thing wrong?
|
|
|
|
|
I am talking about Visual C++ 6.0.
When I need to call a DLL. I basically just include the header file in my source code like this
#include "myHeader.h" //which is the header file for my DLL.
and then copy the DLL into my project which if my project is an executable, I will just put it in my output directory.
Eg. C:\My project\Debug\a.exe
copy to C:\My project\Debug\myDLL.dll
The "add reference" is not in the Visual C++.NET as I had checked it just now. It is only available in C#. Are you sure you are building a right project?
BTW, even the "add reference" is available. It is a reference to .NET assemblies. Don't get mix up the assemblies with old windows DLLs.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
just copy it to any directory in the PATH environment variable
Don't try it, just do it!
|
|
|
|
|
How do I know which one is the PATH environment variable?
There must be a way to know it. And besides, is it enough
just to put the dll into the directory and do nothing? Jut
put there? Don't I need to add it to my project?
Thanks
|
|
|
|
|
Hello, everyone!
I think we can only use "#define" statement to define an int variable, for example,
----------
#define FOO 100
----------
I want to know whether I can use "#define" to define a short int, or unsigned numerical type? Or any numerical type of C/C++?
Thanks in advance,
George
|
|
|
|
|
|
Thanks, Michael buddy!
Geo
|
|
|
|
|
In addition to Michael's post, if you are exclusively using C++, declaring variables as const s is the preferred method to defining constants. This is much more typesafe than using #define . Scott Meyers has more on why you would prefer this in one of his "Effective C++" books.
eg:
const short myNum = 100;
const double myOtherNum = 1.234;
etc etc
If you are using C or a mixture of C/C++ (ie , you are compiling one or more modules as C code), then this method does not work, so YMMV.
--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
|
|
|
|
|
I am sorry for having to ask such a stupid question but how do I check if an edit control is empty? I have tried comparing the contents of the window to NULL but that does not work. I have also checked to see if the CEdit class has an IsEmpty() type function and I can't fine one. Does anyone know how to do this?
Thank you all for your patience.
|
|
|
|
|
if (CMyEdit.GetWindowTextLength() == 0)
{
}
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
I have four octets of an ip stored as follows.
byte octet1,octet2,octet3,octet4
IPAddressCtrl.GetAddress(octet1,octet2,octet3,octet4);
What I need to do is get those four bytes into a DWORD in the propor byte order so I can store that DWORD in an SOCKADDR_IN structure like this
SOCKADDR_IN saDest;
saDest.sin_addr.s_addr = /*Somehow stuff octet1,2,3,4 in*/
Does anyone know how this can be done?
Thank you
|
|
|
|
|
Look at the MAKELONG macro.
|
|
|
|
|
...and if you are messing with network parameters don't forget that it uses network byte order (big endian). Use htonl() and ntohl() to convert between network and host byte order.
|
|
|
|
|
int CIPAddressCtrl::GetAddress( DWORD& dwAddress );
|
|
|
|