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
R

rajneshmalik

@rajneshmalik
About
Posts
56
Topics
33
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • GetComputerObjectNameW Win API is failing
    R rajneshmalik

    Hi Victor, There was configuration issue with my windows laptop, so I was facing issue. Thanks for your feedback.

    C / C++ / MFC help c++ json

  • GetComputerObjectNameW Win32 equivalent iOS API
    R rajneshmalik

    Hi All, There is GetComputerObjectNameW win32 api at below link. Could someone tell me what is equivalent api. I want to use it for iOS C objective program. GetComputerObjectNameW function (secext.h) - Win32 apps | Microsoft Docs[^]

    iOS ios com json question

  • GetComputerObjectNameW Win API is failing
    R rajneshmalik

    Hi Victor, I have modified program according to your suggestion but I am not getting expected result. I want to use NameFullyQualifiedDN enum value and get the fully qualified distinguished name (for example, CN=Jeff Smith,OU=Users,DC=Engineering,DC=Microsoft,DC=Com). Regards, Rajnesh

    C / C++ / MFC help c++ json

  • GetComputerObjectNameW Win API is failing
    R rajneshmalik

    I first try without defining enum after that try with enum. In both case I am getting compilation error.

    C / C++ / MFC help c++ json

  • GetComputerObjectNameW Win API is failing
    R rajneshmalik

    I was trying to use win API

    GetComputerObjectNameW

    as below but I am getting error. Can someone help me.

    #include
    #include
    #include
    typedef enum {
    NameUnknown,
    NameFullyQualifiedDN,
    NameSamCompatible,
    NameDisplay,
    NameUniqueId,
    NameCanonical,
    NameUserPrincipal,
    NameCanonicalEx,
    NameServicePrincipal,
    NameDnsDomain,
    NameGivenName,
    NameSurname
    } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;

    int main()
    {
    EXTENDED_NAME_FORMAT enf = NameFullyQualifiedDN;
    LPWSTR pwszComputerName;
    DWORD dwLen;

        dwLen = 0;
        GetComputerObjectNameW(enf, NULL, &dwLen);
    
        pwszComputerName = new WCHAR\[dwLen + 1\];
        if(NULL == pwszComputerName)
        {
            return 0;
        }
        if(!GetComputerObjectNameW(NameSamCompatible, pwszComputerName, &dwLen))
        {
            delete pwszComputerName;
            return 0;
        }
    
        sbstrTrustee = pwszComputerName;
        wprintf(L"GetComputerObjectName: %s\\n", pwszComputerName);
        delete pwszComputerName;
    

    }

    Some of Error message is as below.

    C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(117): error C2146: syntax error: missing ';' before identifier 'GetUserNameExA'
    C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(121): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(126): error C2086: 'BOOLEAN SEC_ENTRY': redefinition
    C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(117): note: see declaration of 'SEC_ENTRY'
    C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(126): error C2146: syntax error: missing ';' before identifier 'GetUserNameExW'
    C:\Program Files (x86)\Windows Kits\8.1\include\\shared\secext.h(130): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

    C / C++ / MFC help c++ json

  • How to start interrupted detection process again
    R rajneshmalik

    My problem is How to start interrupted detection process again. thanks in advance ;)

    Managed C++/CLI help tutorial

  • fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
    R rajneshmalik

    I have a huge code in one file that i got from other person

    C / C++ / MFC help question

  • fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
    R rajneshmalik

    I am using vc++6 and i could not find the option specify in that link please help me to resolve this problem

    C / C++ / MFC help question

  • fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
    R rajneshmalik

    hi all when i compile my project i got the error "fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit" how can i resolved this error thank u in advance

    C / C++ / MFC help question

  • why can't we declare data member of class auto register or extern
    R rajneshmalik

    but when we write like class a { int i; }; then obviously by default data type of i is auto int my question is why compiler don't accept this,and why none of those make sense as you wrote. if u have any link related to this question please send me thank u in advance

    C / C++ / MFC

  • why can't we declare data member of class auto register or extern
    R rajneshmalik

    thank u in advance

    C / C++ / MFC

  • Find '.' character
    R rajneshmalik

    what do u want to prove to write "Lokking for a job".I thing there are a lot of jobs in market first of all improve yourself.

    C / C++ / MFC c++ help career

  • How much data can be stored by CString Type varible
    R rajneshmalik

    hi I want to know How much data can be stored by CString Type varible.My actual problem is I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command GetDlgItem(ID of edit box)->SetWindowText(CString Type Variable); but is file is big all data is not shown

    C / C++ / MFC help

  • Property page switching
    R rajneshmalik

    thank u sir u give me perfact solution

    C / C++ / MFC

  • Property page switching
    R rajneshmalik

    Hi I have four property page in my program.i want to know which event or message is generated when i pressed the tab of property page Thank u in advance

    C / C++ / MFC

  • how to show only 10 lines in edit box
    R rajneshmalik

    i think u r not understanding my problem.i am able to show string in the edit box.but my actual problem is that in every one second i am adding on line.and only want to show 10 lines means i want to erase the one oldest line when the one new line is inserted

    C / C++ / MFC tutorial

  • how to show only 10 lines in edit box
    R rajneshmalik

    hi rajesh you r absolutely right.can u tell me with the help of some code

    C / C++ / MFC tutorial

  • how to show only 10 lines in edit box
    R rajneshmalik

    hi i run a thread to show some line in edit box and in every second thread add one line but i want to show only last added ten lines in edit box,how is this possible thank you

    C / C++ / MFC tutorial

  • how can i convert a BYTE value into CString
    R rajneshmalik

    hi to all itook a varible BYTE *bByte and want to convert bByte[1] into a CString type varible,bByte varible has hex value, i done CString csValue=(CHAR)bByte; where am i wrong

    C / C++ / MFC question

  • My new problem is to copy directory
    R rajneshmalik

    my code is below but i got error on 7th line where am i wrong plz help SHFILEOPSTRUCT shFileOpStruct; shFileOpStruct.hwnd=NULL; shFileOpStruct.pFrom="C:\\1.txt"; shFileOpStruct.pTo="D:\\1.txt; shFileOpStruct.wFunc=FO_COPY; shFileOpStruct.fFlags=FOF_SIMPLEPROGRESS; if(!SHFileOperation(&shFileOpStruct)) { ::AfxMessageBox("File transfering"); } else { ::AfxMessageBox("File not transfering"); }

    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