Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Suneet 03

@Suneet 03
About
Posts
28
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Reading an inf file
    S Suneet 03

    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?

    C / C++ / MFC question

  • Scheduler Problem
    S Suneet 03

    hr = -2147216619 This is the value it gives while saving thru IPersistFile->Save

    C / C++ / MFC help database security question career

  • Scheduler Problem
    S Suneet 03

    This 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

    C / C++ / MFC help database security question career

  • Scheduler Problem
    S Suneet 03

    Yes, 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?

    C / C++ / MFC help database security question career

  • Scheduler Problem
    S Suneet 03

    Yes , 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!!

    C / C++ / MFC help database security question career

  • Scheduler Problem
    S Suneet 03

    I 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?

    C / C++ / MFC help database security question career

  • activex in browser
    S Suneet 03

    You 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.

    C / C++ / MFC question c++ com security tools

  • Job scheduling in vc++
    S Suneet 03

    can anyone tell how to do job scheduling in vc++

    C / C++ / MFC c++ tutorial career

  • how to compare char * and WCHAR *
    S Suneet 03

    Convert your char* to wchar* using MultiByteToWideChar and then use wcscmp to compare these two strings...

    C / C++ / MFC tutorial

  • Convert CString to const unsigned short *
    S Suneet 03

    typecast it to const unsigned short* ..... FillSafeArray((const unsigned short*).....

    C / C++ / MFC question

  • Convert CString to const unsigned short *
    S Suneet 03

    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 !!!

    C / C++ / MFC question

  • WideChar to Variant conversion
    S Suneet 03

    I 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??

    C / C++ / MFC tutorial question

  • WideChar to Variant conversion
    S Suneet 03

    Can 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.

    C / C++ / MFC tutorial question

  • VC++ compilation
    S Suneet 03

    If 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 ?

    C / C++ / MFC c++ question

  • Conversion problem
    S Suneet 03

    I 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*

    C / C++ / MFC help

  • Different language
    S Suneet 03

    How 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.

    C / C++ / MFC question help

  • UTF problem
    S Suneet 03

    After 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 !!!!!!!

    C / C++ / MFC help question

  • UTF problem
    S Suneet 03

    Thanx 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

    C / C++ / MFC help question

  • UTF problem
    S Suneet 03

    yaa, 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

    C / C++ / MFC help question

  • UTF problem
    S Suneet 03

    I 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 ???

    C / C++ / MFC help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups