Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMemory allocated between two checkpoints by a process Pin
BadJerry11-Feb-10 7:30
BadJerry11-Feb-10 7:30 
QuestionMulti Monitor Configuration in MFC/C++ Pin
krishna Srihsam11-Feb-10 7:22
krishna Srihsam11-Feb-10 7:22 
AnswerRe: Multi Monitor Configuration in MFC/C++ Pin
Emilio Garavaglia11-Feb-10 21:15
Emilio Garavaglia11-Feb-10 21:15 
AnswerRe: Multi Monitor Configuration in MFC/C++ Pin
normanS11-Feb-10 22:35
normanS11-Feb-10 22:35 
QuestionNeed to extract non-exported function of DLL Pin
glitteringsound11-Feb-10 7:22
glitteringsound11-Feb-10 7:22 
AnswerRe: Need to extract non-exported function of DLL Pin
Richard MacCutchan11-Feb-10 9:48
mveRichard MacCutchan11-Feb-10 9:48 
AnswerRe: Need to extract non-exported function of DLL Pin
Saurabh.Garg11-Feb-10 17:21
Saurabh.Garg11-Feb-10 17:21 
QuestionC++ application with dll in C:\WINDOWS\system32 problem Pin
chan1111-Feb-10 4:12
chan1111-Feb-10 4:12 
Hi there,

I have given this application that includes a dll and ini file that has to be in system32 folder in Windows machine and another VB application that uses the dll and ini to display the activities of the application. there is also another application that is Linux based and runs on Ubuntu to have just one server I want to install and run the application on the Linux based server by using Vine virtual machine. My problem is that I am not sure how I can change the C++ application code to read the dll and ini files from another folder (i.e. C:\Application) rather than Windows32 folder. Here is what the application have in config class (of course the original programmer didn't provide any comments or documents and the application is more than 15000 lines of code):

.h:
#ifndef __CfgClass_H__
#define __CfgClass_H__

#include <windows.h>
#include <windowsx>
#include "stdafx.h"

.cpp:

memset( CfgFilePath, '\0', MAX_PATH );
if( GetSystemDirectory( tmpFile, MAX_PATH )== 0 )
{
return;
}
wsprintf( CfgFilePath, "%s\\Application.ini", tmpFile );

Any help will be appreciated.

Regards,

Chan
AnswerRe: C++ application with dll in C:\WINDOWS\system32 problem Pin
Richard Andrew x6411-Feb-10 7:37
professionalRichard Andrew x6411-Feb-10 7:37 
GeneralRe: C++ application with dll in C:\WINDOWS\system32 problem Pin
chan1111-Feb-10 8:21
chan1111-Feb-10 8:21 
QuestionDAO - Constraint Syntax Error! Pin
A&Ms11-Feb-10 3:23
A&Ms11-Feb-10 3:23 
QuestionHow do I use SetElementProperty with CDHtmlDialog? Pin
BigRedBetta11-Feb-10 3:03
BigRedBetta11-Feb-10 3:03 
QuestionWant to paste a file programatically (using C++) that's available in the clipboard Pin
PankajB11-Feb-10 1:55
PankajB11-Feb-10 1:55 
AnswerRe: Want to paste a file programatically (using C++) that's available in the clipboard Pin
Code-o-mat11-Feb-10 4:14
Code-o-mat11-Feb-10 4:14 
QuestionAdding a new item to Open With sub menu in context menu of explorer Pin
Deepu Antony11-Feb-10 1:26
Deepu Antony11-Feb-10 1:26 
AnswerRe: Adding a new item to Open With sub menu in context menu of explorer Pin
Graham Breach11-Feb-10 2:43
Graham Breach11-Feb-10 2:43 
GeneralRe: Adding a new item to Open With sub menu in context menu of explorer Pin
Deepu Antony11-Feb-10 19:04
Deepu Antony11-Feb-10 19:04 
QuestionSendMessage Pin
john563211-Feb-10 0:26
john563211-Feb-10 0:26 
AnswerRe: SendMessage Pin
CPallini11-Feb-10 0:39
mveCPallini11-Feb-10 0:39 
AnswerRe: SendMessage Pin
Richard MacCutchan11-Feb-10 0:40
mveRichard MacCutchan11-Feb-10 0:40 
AnswerRe: SendMessage Pin
Rajesh R Subramanian11-Feb-10 1:28
professionalRajesh R Subramanian11-Feb-10 1:28 
QuestionDAO Excute Method Error on Contratint Pin
A&Ms11-Feb-10 0:19
A&Ms11-Feb-10 0:19 
QuestionRe: DAO Excute Method Error on Contratint Pin
CPallini11-Feb-10 0:29
mveCPallini11-Feb-10 0:29 
AnswerRe: DAO Excute Method Error on Contratint Pin
A&Ms11-Feb-10 2:16
A&Ms11-Feb-10 2:16 
QuestionWatermark printing Pin
Harsh Shankar11-Feb-10 0:09
Harsh Shankar11-Feb-10 0:09 

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.