Click here to Skip to main content
15,848,904 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson17-Apr-09 1:04
professionalStuart Dootson17-Apr-09 1:04 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 1:06
Le@rner17-Apr-09 1:06 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Stuart Dootson17-Apr-09 1:09
professionalStuart Dootson17-Apr-09 1:09 
GeneralRe: Problem in PROCESS_INFORMATION. Pin
Le@rner17-Apr-09 1:10
Le@rner17-Apr-09 1:10 
QuestionHow can get column name from Excel? Pin
Le@rner16-Apr-09 21:05
Le@rner16-Apr-09 21:05 
QuestionProblem with socket program in Client side Pin
Abhijit D. Babar16-Apr-09 21:02
Abhijit D. Babar16-Apr-09 21:02 
AnswerRe: Problem with socket program in Client side Pin
ParagPatel25-Apr-09 2:08
ParagPatel25-Apr-09 2:08 
QuestionSetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 15:08
rbwest8616-Apr-09 15: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 15:27
sitebuilderLuc Pattyn16-Apr-09 15:27 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 15:41
rbwest8616-Apr-09 15:41 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
Luc Pattyn16-Apr-09 15:51
sitebuilderLuc Pattyn16-Apr-09 15:51 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 15:58
rbwest8616-Apr-09 15:58 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
Luc Pattyn16-Apr-09 16:06
sitebuilderLuc Pattyn16-Apr-09 16:06 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
rbwest8616-Apr-09 16:19
rbwest8616-Apr-09 16:19 
GeneralRe: SetComputerName not taking effect. No Error in Debug either. Pin
Luc Pattyn16-Apr-09 16:28
sitebuilderLuc Pattyn16-Apr-09 16:28 
AnswerRe: SetComputerName not taking effect. No Error in Debug either. Pin
Stuart Dootson16-Apr-09 21:42
professionalStuart Dootson16-Apr-09 21:42 
QuestionPDF output for graphical MFC C++ app Pin
John Daleiden16-Apr-09 12:21
John Daleiden16-Apr-09 12:21 
AnswerRe: PDF output for graphical MFC C++ app Pin
Stuart Dootson16-Apr-09 21:51
professionalStuart Dootson16-Apr-09 21:51 
QuestionHow to get a C++ job? Pin
gotchagotcha16-Apr-09 9:21
gotchagotcha16-Apr-09 9:21 
AnswerRe: How to get a C++ job? Pin
Maximilien16-Apr-09 11:36
Maximilien16-Apr-09 11:36 
AnswerRe: How to get a C++ job? Pin
Joe Woodbury16-Apr-09 20:52
professionalJoe Woodbury16-Apr-09 20:52 
GeneralRe: How to get a C++ job? Pin
zhanzongru19-Apr-09 2:33
zhanzongru19-Apr-09 2:33 
QuestionUse Codec Pin
deadlyabbas16-Apr-09 8:38
deadlyabbas16-Apr-09 8:38 
AnswerRe: Use Codec Pin
Stuart Dootson16-Apr-09 8:50
professionalStuart Dootson16-Apr-09 8:50 
AnswerRe: Use Codec Pin
led mike16-Apr-09 8:51
led mike16-Apr-09 8:51 

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.