Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why do i get this error? Pin
Cedric Moonen16-Apr-09 21:11
Cedric Moonen16-Apr-09 21:11 
GeneralRe: Why do i get this error? Pin
Cedric Moonen16-Apr-09 21:06
Cedric Moonen16-Apr-09 21:06 
GeneralRe: Why do i get this error? Pin
Stuart Dootson16-Apr-09 22:13
professionalStuart Dootson16-Apr-09 22:13 
QuestionProblem in PROCESS_INFORMATION. Pin
Le@rner16-Apr-09 20:08
Le@rner16-Apr-09 20:08 
AnswerRe: Problem in PROCESS_INFORMATION. Pin
«_Superman_»16-Apr-09 21:07
professional«_Superman_»16-Apr-09 21:07 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner16-Apr-09 21:09
Le@rner16-Apr-09 21:09 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
CPallini16-Apr-09 21:10
mveCPallini16-Apr-09 21:10 
AnswerRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson16-Apr-09 22:35
professionalStuart Dootson16-Apr-09 22:35 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 0:00
Le@rner17-Apr-09 0:00 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson17-Apr-09 0:04
professionalStuart Dootson17-Apr-09 0:04 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 0:06
Le@rner17-Apr-09 0:06 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson17-Apr-09 0:09
professionalStuart Dootson17-Apr-09 0:09 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 0:10
Le@rner17-Apr-09 0:10 
QuestionHow can get column name from Excel? Pin
Le@rner16-Apr-09 20:05
Le@rner16-Apr-09 20:05 
QuestionProblem with socket program in Client side Pin
Abhijit D. Babar16-Apr-09 20:02
Abhijit D. Babar16-Apr-09 20:02 
AnswerRe: Problem with socket program in Client side Pin
ParagPatel25-Apr-09 1:08
ParagPatel25-Apr-09 1:08 
QuestionSetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 14:08
rbwest8616-Apr-09 14:08 
Hello everyone,

I am posting this here because I am not receiving an error to my compiling. The program executes just fine, just not applying the new computer name. Please tell me what you see wrong. I am new and been reading on MSDN's website on how to used this Function correctly.

If you have an answer to my question, please explain your answer. It will help me and any other beginner programmer.

Here is the code:

<code>#include <iostream>
#include <windows.h>
#include <stdio.h>
using namespace std;



// Set Local Computer Name
BOOL WINAPI SetComputerName(
LPCTSTR lpnewcomputername
);

int main()
{
return 0;
}

AnswerRe: SetComputerName not taking effect. No Error in Debug either. Pin
Luc Pattyn16-Apr-09 14:27
sitebuilderLuc Pattyn16-Apr-09 14:27 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 14:41
rbwest8616-Apr-09 14:41 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
Luc Pattyn16-Apr-09 14:51
sitebuilderLuc Pattyn16-Apr-09 14:51 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 14:58
rbwest8616-Apr-09 14:58 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
Luc Pattyn16-Apr-09 15:06
sitebuilderLuc Pattyn16-Apr-09 15:06 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 15:19
rbwest8616-Apr-09 15:19 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
Luc Pattyn16-Apr-09 15:28
sitebuilderLuc Pattyn16-Apr-09 15:28 
AnswerRe: SetComputerName not taking effect. No Error in Debug either. Pin
Stuart Dootson16-Apr-09 20:42
professionalStuart Dootson16-Apr-09 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.