Is reading an Inf file same as raeding a normal text file? If no , then what all has to be done to read an inf file?
Suneet 03
Posts
-
Reading an inf file -
Scheduler Problemhr = -2147216619 This is the value it gives while saving thru IPersistFile->Save
-
Scheduler ProblemThis is the flow : hr = pITask->SetApplicationName(pwszApplicationName); TCHAR pszName[500] = "User"; TCHAR pszPwd[500] = "Password"; hr = pITask->SetAccountInformation((LPCWSTR)pszName, (LPCWSTR)pszPwd); hr = pITask->CreateTrigger(&piNewTrigger,&pITaskTrigger); hr = pITaskTrigger->SetTrigger (&pTrigger); hr = pIPersistFile->Save(NULL,TRUE); // Here Error is getting Logged in SchedLgU
-
Scheduler ProblemYes, if i go to that job and specify the password in the properties, the job runs fine , its just that through setAccountInformation I am not able to run that job? It is picking my default Windows login and not the userID I specify in setAccountInformation. What could be the reason?
-
Scheduler ProblemYes , i pass both the parameters username and password but the still same error exists. I went through the microsoft site , it seems this was a bug in earlier XP versions but that fix was made. I am using XP version 2002 service pack 2, is this the version in which fix is made or not? Thanx for reply!!
-
Scheduler ProblemI am trying to create a scheduler using ITaskScheduler but I am struck up while running the job. I am able to create the job but it is throwing an error while saving the job at hr = pIPersistFile->Save(NULL,TRUE); The Error that is getting logged is The attempt to retrieve account information for the specified task failed; therefore, the task did not run. Either an error occurred, or no account information existed for the task. The specific error is: 0x8004130f: No account information could be found in the Task Scheduler security database for the task indicated. I am using XP , do anyone has any idea why it is failing while saving?
-
activex in browserYou should mark your ActiveX component as safe for initialisation and scripting. Since ActiveX can do anything thus , microsoft has made it necessary the safe initialisation of ocx controls. So, make some code level changes in update Registry to doo this.
-
Job scheduling in vc++can anyone tell how to do job scheduling in vc++
-
how to compare char * and WCHAR *Convert your char* to wchar* using MultiByteToWideChar and then use wcscmp to compare these two strings...
-
Convert CString to const unsigned short *typecast it to const unsigned short* ..... FillSafeArray((const unsigned short*).....
-
Convert CString to const unsigned short *You can use MultiByteToWideChar may be somethng like this CString str; wchar_t* wch MultiByteToWideChar(CP_ACP,0,str,strlen(str),wch,strlen(str),NULL,NULL) Don't forget to allocate memory to this wchar variable then typecast this wchar to unsigned short* FillSafeArray((unsigned short*)wch ,....) I think this will help u out !!!
-
WideChar to Variant conversionI have sumthng like this VARIANT getData() { unsigned char* puc_Data = " SOME TEXT "; // I am converting the above unsigned char to whar_t* using MultiByteToWideChar(CP_UTF8,..,puc_Data,len,wchar_t*,len); // I want to take this wchar string and convert it to VARIANT // Doing it thru COleVariant ColeVariant var(wchar string ); // Data is getting lost sumwhere here ... return var; Can anyone suggest wat i m doing wrong??
-
WideChar to Variant conversionCan anyone tell how to convert a widechar string to VARIANT I have an unsigned char* string , I am converting it to widechar using MultiByteToWideChar. How to convert it to VARIANT ? The data is getting lost if i use ColeVariant.
-
VC++ compilationIf I compile the code as a UNICODE built , which compilation would it be UTF-8 , UTF-16 or some other . I mean to say what support it would be UTF-8 or UTF-16. and If nothing what can be done to make it utf-8 if I am using wcstombs ,_wcslen functions ? Using MultiByteToWideChar is the solution ?
-
Conversion problemI am using _UNICODE as a directive but want my code to compile without errors without _UNICODE. Can anyone tell me is there any way to switch between functions same way i do for strings #ifdef _UNICODE typedef wchar_t TCHAR; #define __T(x) L ## x #else typedef char TCHAR; #define __T(x) x #endif can i do something same for wcscpy and _tcslen functions. I am using wcscpy in wchar and strcpy for const char*
-
Different languageHow can I Input different language text from a Dialog based application. Showing "?????" as input characters. Do building it with UNICODE prepproessor solve this problem? Also, getting weird characters if I am reading from a file. Using _wfopen which is the function to open a unicode file and reading the contents using fread function. The file has some other language characters.
-
UTF problemAfter making the changes still , getting the weird characters while reading from file ( file has hindi characters) Can anyone tell how can i read a Text file having hindi charcters. Do I need to set some Font in my VC++ program so that i can display this Hindi Text on to the dialog. Confused !!!!!!!
-
UTF problemThanx for such quick replies. If that is the case then I fear , I have 2 make lot of changes.. sine I have used _MBCS during compilation and using strcpy and strlen everywhere.... Can you tell me instead of strcpy what function can i use.. same way as strlen is for _tcslen
-
UTF problemyaa, I am using US/English Windows with Input language set to Hindi How can I make my program to use the Hindi Code page. and I am struck at reading them from file, why is it showing those characters
-
UTF problemI have Hindi Text and want to display it on a Dialog Box, but the problem comes when i m reading it from a file. It shows weird characters like "ऊ ठठठ分有点晕," I am using fread function to read these Hindi Text. and converting it to wide characters using mbstowcs(buf0,str0,l_Len0+1); SetDlgItemTextW(m_hWnd,IDC_MY_TEXT,buf0); where buf0 is wchar_t and str0 is the above weird characters. Can anyone tell where I am going wrong ???