:((Hi, I am using Windows CE platform for my flashlite plugin application development.In the registry file(.rgs),threading model is set to Both to support both the STA and MTA. Because of the threading model, I am getting fatal error as , "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The thr:((eading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms." So, I changed the apartment type is changed to free,apartment etc. like ThreadingModel = Both ThreadingModel = Free ThreadingModel = Apartment But I am getting the same error.It is related to _WIN32_WCE macro? Please help me to solve this error... Siddharth
siddharthsan
Posts
-
About Threading model -
Typecasting:((Hi, I am using Visual studio 2005 for my application. In my application,Loadlibrary is used, LoadLibrary("library.dll"); If i simply give like this, it's showing error as "cannot convert parameter 1 from const char to LPCWSTR",so i typecasted it as, LoadLibrary(_T("library.dll")) or LoadLibrary((LPCWSTR)"library.dll")) if i give like this it is not taking or recognizing the library gives error as No such lib found. Please I need help... Siddharth
-
How to convert from 'int' to 'unsigned short *'I want to use U16,U8 in my functions...
-
How to convert from 'int' to 'unsigned short *'Thank you
-
How to convert from 'int' to 'unsigned short *'Hi, I want to convert from 'int' to 'unsigned short *'?what i have to do? Siddharth
-
Modaless Dialog BoxNo, I am not calling that function directly. But global declaration where I am doing Is it correct? After the App instance creation,I am creating Dlg instance.
-
Modaless Dialog BoxError is in Line no 22
-
Modaless Dialog BoxThank you, I am getting Debug Assertion in afxwin1.ini file. I told that we have to create dlg instance globally because,when i create it inside the initinstance then dialog will be disappeared when the it is out of the scope,so I wanted it as a global one.
-
Modaless Dialog BoxThank you, I have to globally define the dlg instance, CMfc_Modaless_vc6Dlg dlg; CWnd* m_pMainWnd = &dlg; while I do this after the application instance creation it is giving the same Debug Assertion Failed problem.I cannot declare the Dlg locally,so what i can do for this? Siddharth
-
Modaless Dialog BoxHi, I want to display a Modaless Dialog box instead of Modal dialog box in mfc application.So,I called Create function instead of DoModal() inside the InitInstance() but I am getting Debug Assertion Failed error. CDlg dlg; m_pMainWnd = &dlg; int nResponse = dlg.Create(IDD_DIALOG1); if(nResponse) dlg.ShowWindow(SW_SHOW); else MessageBox(NULL,_T("Error"),_T("Error"),MB_OK); I dont know where made the mistake??? Siddharth
-
Converting character array to LPCTSTRHi, Please anybody tell me how to convert a character array(char a[11]) to LPCTSTR??? Thank you Siddharth
-
About Dll Export and ImportI am using an existing dll and I want to export class from it.And I created a sample application(mfc) to import that particular class... So I used the steps above.But how I can check whether the class is exported or not ???
-
About Dll Export and ImportThank you Actually,Dll which I am using is an exising dll.So I exported and imported the class and changed the project settings according to the tutorials. Now I included the header file in my sample application ,but it is not recognizing the file??? please help me... Siddharth
-
About Dll Export and ImportHi, I have to export a class and it's function from a dll(this dll is already exists) then i have to import that class in to my application??? So,I did as, In that dll defined a macro as DLLExport: #ifdef DllExport #define DllExport __declspec( dllexport ) #endif In the class declaration gave as, class DllExport ATL_NO_VTABLE CShockwaveFlash: What i have to do after this??? Thanks and Regards, Siddharth
-
About Xml parserHi, I am new to Xml language,Can anybody tell what will be output of a xml parser??? Thanks in advance. Siddharth
-
About storing file contentHi, I have to create a application which parses the xml data,for that i have seperate parser, Function to accept Xml file from the user Storing the file content in a buffer passing the buffer pointer in the parser... How can i implement this tasks,Please help out with your suggestions. Thanks in advance. Siddharth
-
About load a fileHi, I want to seperate some flash player functionalities as a seperate dll,so I want to make loadmovie function in that, void Loadmovie(const char* url,bool IsMBCS) url->Path of the movie IsMBCS->to check coding(multibyte or unicode) it in turn calls many functions, Now i have to write c++ function to load a movie specified in the load movie function,what can i do??? Siddharth
-
About CWnd ErrorI removed windows.h from stdafx.h and included afxwin.h in my header file.Now it is not recognizing the InvokeHelper and it's parameters.Giving error as error C2065: 'InvokeHelper' : undeclared identifier error C2065: 'DISPATCH_METHOD' : undeclared identifier error C2065: 'VT_EMPTY' : undeclared identifier What would be the problem... Siddahrth
-
About CWnd ErrorIf I include afxwin.h it showing the following error, fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include What i have to do... Siddharth
-
About CWnd ErrorHi, I created dll and trying to export a function which in turn calls InvokeHelper function,But my dll is created using win32 dynamic library it is not recognizing InvokeHelper,so i included the macros, _AFX_NO_OCC_SUPPORT and AFX_CDECL.Now it is showing error as, error C2061: syntax error : identifier 'CWnd'.What i have to do.Please help me...:(( Siddharth