Search:
Type: Posts; User: Kal-El
Search:
Search took 0.09 seconds.
-
Try msdn...is even on your signature :)
-
This is pointer:
char * str = "hello";
memset(str, 'x', 1); //you can't change a string pointer allocated
BTW: Are you aware what memset does?
-
I don't understand..what do you mean by add to it?
-
1) Try atoi or atol.
2) Use char *ft_Name instead.
3) You should use cx323's code.
-
@chemicalNova: While the code is for you and you don't have an ANSI evaluator in your back, we can code as we please ;) :p
-
because you are allocating pointers of the array. You actually don't need to allocate dynamically the array, since you know the dimmensions.
-
See string functions.
Try with strtok.
-
yes, you can :)
Include first the header and later use the function
#include <iostream>
#include "myheader.h"
int main() {
myheaderfunc(0); // this function is declared in "myheader.h"
...
-
First, please see the docs about it...clearly says windows handle (HWND) not integers, you must used the control id than the handle.
Second, that error:
Is because I gave you in C++ style, no...
-
Well..you can check if there's something on the edit by GetWindowTextLength.
Maybe like:
case MY_BUTTON_ID:
{
int iLen = GetWindowTextLength(hwEdit);
if (!iLen) {
// Do...
-
Yeah, I made one once...is horrible :(
Better use the old API..mean and clean :)
-
Since you are not using WNDCLASS or WNDCLASSEX you can do it using on if this methods:
1) SetClassLongPtr and change GCLP_HICONSM or GCLP_HICON. If you compiler doesn't recognize SetClassLongPtr,...
-
-
Yes, include <windows.h> and some of this
ExitWindowsEx(uFlags, dwReason)
uFlags:
EWX_LOGOFF: Logoff the current user.
EWX_RESTART: Simply restart the computer.
EWX_SHUTDOWN: Shut down but 'AT'...
-
try using string is easier:
int main() {
string str;
cout << "What would you like to do?\nLeave, or Stay?" << endl;
cin >> str;
if (str == "Leave") {
cout << "You are leaving" << endl;...
-
Try debug to see ini which line is the error
-
Dependes...If you only to send messages between..I think will be more proper to use FindWindow - SendMessage.
If you need continue communication...detect keystroks, etc., yeah Hooking is bette.
-
There are few ways to comunicate with other applications..sure is SendMessage, subclasing, but also is hooking, see SetWindowsHook.
-
1) Params of ShellExecute are well explain in here.
2) GetDesktopWindow returns a window handle of the desktop.
-
I know...but I was looking something like code::blocks.... :)
-
I was wondering...is there are any good alternative IDE so we can use the platform SDK...I tired of using the VC++ express edition for only compile and build :confused:
-
1) Do you actually have Visual Basic 6? :)
2) You'll need learn to use Timers and ShellExecute.
3) Alternaty, you can learn the Internet control.
-
This will give you a clue.
-
What chemicalNova said :wave:
-
-
-
In my opinion is much better to use <iostream> because using <iostream.h> and later using namespace std all the stl and class are dump into the executable, so to have it much smaller and optimized, I...
-
I do this:
1) Traverse the source folder three with FindFirstFile.
2) get the file, for example: s:\file.txt
3) Parse the string to get onlt the file and use it with the user folder input, for...
-
And I don't why are you using this kinda code :p
-
easy :p
char out[128];
cout << "imput your dest. folder" << endl;
cin.getline(out, sizeof(out));
// use here out as users path
// CopyFile("x:\\path\\", out);
cout << out << endl;
My...
-
Correct! But see this:
Even is "in used" the header, it never reashes the end of the header MainClass.
-
I think because never reashes to the end of the class...
See, is like this:
1) start header A.
2) header A calls header B.
3) start header B.
4) header B calls header A.
5) start header A.
6)...
-
1) Set edit text limit with EM_LIMITTEXT.
2) trap the EN_MAXTEXT notification.
-
Well..
1) You can use CopyFile.
2) Use system with copy command
-
That's why I use DWORD values in my win32 apps ;)
-
-
See this, will give you the geneal idea.
-
I recommend use GetLastError.
Is german but you'll se the code :)
-
replacing cin as...? input stuff?
You can always to return to the old scanf :p
-
if is windows must be something like
_WINDOWS_
You can use something like:
#ifdef _WINDOWS_
// we are in a windows enviroment
#else
// other than windows
#endif
|
Click Here to Expand Forum to Full Width
|