Click here to Skip to main content
15,879,535 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionPDF output for graphical MFC C++ app Pin
John Daleiden16-Apr-09 11:21
John Daleiden16-Apr-09 11:21 
AnswerRe: PDF output for graphical MFC C++ app Pin
Stuart Dootson16-Apr-09 20:51
professionalStuart Dootson16-Apr-09 20:51 
QuestionHow to get a C++ job? Pin
gotchagotcha16-Apr-09 8:21
gotchagotcha16-Apr-09 8:21 
AnswerRe: How to get a C++ job? Pin
Maximilien16-Apr-09 10:36
Maximilien16-Apr-09 10:36 
AnswerRe: How to get a C++ job? Pin
Joe Woodbury16-Apr-09 19:52
professionalJoe Woodbury16-Apr-09 19:52 
GeneralRe: How to get a C++ job? Pin
zhanzongru19-Apr-09 1:33
zhanzongru19-Apr-09 1:33 
QuestionUse Codec Pin
deadlyabbas16-Apr-09 7:38
deadlyabbas16-Apr-09 7:38 
AnswerRe: Use Codec Pin
Stuart Dootson16-Apr-09 7:50
professionalStuart Dootson16-Apr-09 7:50 
AnswerRe: Use Codec Pin
led mike16-Apr-09 7:51
led mike16-Apr-09 7: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.