Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: shell32.dll!7ca51646() Pin
«_Superman_»23-Sep-09 20:42
professional«_Superman_»23-Sep-09 20:42 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc23-Sep-09 20:46
MsmVc23-Sep-09 20:46 
GeneralRe: shell32.dll!7ca51646() Pin
«_Superman_»23-Sep-09 20:53
professional«_Superman_»23-Sep-09 20:53 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc23-Sep-09 21:12
MsmVc23-Sep-09 21:12 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc23-Sep-09 21:18
MsmVc23-Sep-09 21:18 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc23-Sep-09 23:28
MsmVc23-Sep-09 23:28 
AnswerRe: shell32.dll!7ca51646() Pin
David Crow24-Sep-09 3:51
David Crow24-Sep-09 3:51 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc24-Sep-09 23:09
MsmVc24-Sep-09 23:09 
QuestionRe: shell32.dll!7ca51646() Pin
David Crow25-Sep-09 2:30
David Crow25-Sep-09 2:30 
AnswerRe: shell32.dll!7ca51646() Pin
MsmVc25-Sep-09 2:56
MsmVc25-Sep-09 2:56 
Questionexcel automation Pin
prithaa23-Sep-09 18:59
prithaa23-Sep-09 18:59 
AnswerRe: excel automation Pin
Franck Paquier23-Sep-09 22:17
Franck Paquier23-Sep-09 22:17 
GeneralRe: excel automation Pin
prithaa30-Sep-09 22:38
prithaa30-Sep-09 22:38 
QuestionHandle Dialog in VB Script Pin
Bedke23-Sep-09 18:30
Bedke23-Sep-09 18:30 
QuestionTo launch the "Speakers Properties" Pin
Maxwell Chen23-Sep-09 18:05
Maxwell Chen23-Sep-09 18:05 
AnswerRe: To launch the "Speakers Properties" Pin
Maxwell Chen23-Sep-09 18:35
Maxwell Chen23-Sep-09 18:35 
AnswerRe: To launch the "Speakers Properties" Pin
kilt24-Sep-09 7:03
kilt24-Sep-09 7:03 
QuestionMemory mapped file I/O Vs Disk I/O Pin
vipin_nvk23-Sep-09 18:05
vipin_nvk23-Sep-09 18:05 
AnswerRe: Memory mapped file I/O Vs Disk I/O Pin
Stuart Dootson24-Sep-09 6:23
professionalStuart Dootson24-Sep-09 6:23 
Questiona bother about windows service Pin
jinjiashan23-Sep-09 16:16
jinjiashan23-Sep-09 16:16 
AnswerRe: a bother about windows service Pin
jinjiashan23-Sep-09 21:50
jinjiashan23-Sep-09 21:50 
GeneralRe: a bother about windows service Pin
jinjiashan24-Sep-09 0:04
jinjiashan24-Sep-09 0:04 
AnswerRe: a bother about windows service Pin
Rolf Kristensen26-Sep-09 7:49
Rolf Kristensen26-Sep-09 7:49 
GeneralRe: a bother about windows service Pin
jinjiashan27-Sep-09 13:29
jinjiashan27-Sep-09 13:29 
QuestionProblem with initializing Main args! Pin
Largo6523-Sep-09 12:58
Largo6523-Sep-09 12:58 
Hi, I am building an application using the OGRE 3D engine and Rebecca API for AIML. The problem is when creating a NetworkAimlFacade object. Its constructors need the "int argc, char* args[]" that are normally in the main method. But I'm not using any main method and I am building an independent class based on a sample console application:

Here is my class:

class ChatBot
{
	private:
	
		NetworkGraphBuilder* builder;
	
	public:
		ChatBot(){

			NetworkAimlFacade aiml(argc, args); // Where can I get these vars?
			NetworkGraphBuilder &builder = aiml.getNetworkGraphBuilder();
			string botName = builder.getBotPredicate("name").c_str();
			StringPimpl response = builder.getResponse("connect");		

	}
		string askQuestionAndGetAnswer( string input )
		{
			StringPimpl strPimText;
			builder->getResponse(strPimText);
			string responseString = strPimText.c_str();
			return (responseString);
		}
};


Here is part of the console sample:

int main (int argc, char* args[]) 
{
		/*
		 * This is responsible for memory management of 
		 * GraphBuilder.
		 */
		NetworkAimlFacade aiml(argc, args);


Can anyone tell me if it is possible to initialize the "argc" and "args" variables with out the main method? (I've tried a couple of ways but they don't work Frown | :(

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.