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
M

Mogaambo

@Mogaambo
About
Posts
292
Topics
138
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • convert vbscript to c++
    M Mogaambo

    // adminGroup.cpp : Defines the entry point for the console application. // #pragma comment(lib,"Netapi32.lib") #include <stdio.h> #include <windows.h> #include < LMCONS.H> #include <Lm.h> #include <Lmaccess.h> #define MAX_PREFERRED_LENGTH ((DWORD) -1) #include "stdafx.h" #include <iostream> #include <string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { // NET_API_STATUS ret = 0 ; //LPCWSTR servername = NULL; //LPCWSTR groupname = L"Administrators"; LPBYTE buffer = NULL; //DWORD entriesRead; //DWORD totalEntries; //DWORD resumeHandle =0; // //typedef struct _LOCALGROUP_MEMBERS_INFO_1 { // PSID lgrmi1_sid; // SID_NAME_USE lgrmi1_sidusage; // LPWSTR lgrmi1_name; //}LOCALGROUP_MEMBERS_INFO_1, *PLOCALGROUP_MEMBERS_INFO_1, *LPLOCALGROUP_MEMBERS_INFO_1; ////function call //ret=NetLocalGroupGetMembers (NULL, groupname, 1, &buffer, MAX_PREFERRED_LENGTH, &entriesRead, &totalEntries, &resumeHandle); //LPLOCALGROUP_MEMBERS_INFO_1 pstMembersInfo = 0; //for( DWORD dwIdx =0; dwIdx < entriesRead; dwIdx ++ ) //{ // //std::cout<< pstMembersInfo[dwIdx].lgrmi1_name ; //} //int n=0; LPLOCALGROUP_MEMBERS_INFO_1 pstMembersInfo = 0; DWORD entriesread = 0; DWORD totalentries = 0; LPWSTR FromFile2=NULL; if( 0 != NetLocalGroupGetMembers( NULL, _T("Administrators"), 1, (LPBYTE*) &buffer,MAX_PREFERRED_LENGTH, &entriesread, &totalentries, 0 )) { //AfxMessageBox( _T("NetLocalGroupGetMembers failed !")); // return ; } PLOCALGROUP_MEMBERS_INFO_1 pData = (PLOCALGROUP_MEMBERS_INFO_1)buffer; for( DWORD dwIdx =0; dwIdx < entriesread; dwIdx ++ , pData++) { //printf("%S\n", pstMembersInfo[dwIdx].lgrmi1_name );; //lstrcpy(FromFile2,pstMembersInfo[dwIdx].lgrmi1_name); //std::cout<<(std::string) pstMembersInfo[dwIdx].lgrmi1_name <<std::endl; wcout<< pData->lgrmi1_name <<std::endl; //printf("%S\n", pData->lgrmi1_name );; } NetApiBufferFree( buffer ); return 0; }

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C / C++ / MFC c++ data-structures question

  • convert vbscript to c++
    M Mogaambo

    Thanks to all for helping me a lot, actually i am c# programmer and i dont know all these jargons. Thks alot

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C / C++ / MFC c++ data-structures question

  • convert vbscript to c++
    M Mogaambo

    cout<< pData->lgrmi1_name <<std::endl; //how can i get name here as it is printing only address like below printf("%S\n", pData->lgrmi1_name );;

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C / C++ / MFC c++ data-structures question

  • convert vbscript to c++
    M Mogaambo

    Here what i get after a lot of googling or say binging LPLOCALGROUP_MEMBERS_INFO_1 pstMembersInfo = 0; DWORD entriesread = 0; DWORD totalentries = 0; if( 0 != NetLocalGroupGetMembers( NULL, _T("Administrators"), 1, (LPBYTE*) &pstMembersInfo,MAX_PREFERRED_LENGTH, &entriesread, &totalentries, 0 )) { AfxMessageBox( _T("NetLocalGroupGetMembers failed !")); return ; } for( DWORD dwIdx =0; dwIdx < entriesread; dwIdx ++ ) { AfxMessageBox( pstMembersInfo[dwIdx].lgrmi1_name ); } NetApiBufferFree( pstMembersInfo );

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C / C++ / MFC c++ data-structures question

  • convert vbscript to c++
    M Mogaambo

    How can i enumerate users // adminGroup.cpp : Defines the entry point for the console application. // #pragma comment(lib,"Netapi32.lib") #include #include < LMCONS.H> #include #include #define MAX_PREFERRED_LENGTH ((DWORD) -1) #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { NET_API_STATUS ret = 0 ; LPCWSTR servername = NULL; LPCWSTR groupname = L"Administrators"; LPBYTE buffer = NULL; DWORD entriesRead; DWORD totalEntries; DWORD resumeHandle =0; typedef struct _LOCALGROUP_MEMBERS_INFO_1 { PSID lgrmi1_sid; SID_NAME_USE lgrmi1_sidusage; LPWSTR lgrmi1_name; }LOCALGROUP_MEMBERS_INFO_1, *PLOCALGROUP_MEMBERS_INFO_1, *LPLOCALGROUP_MEMBERS_INFO_1; //function call ret=NetLocalGroupGetMembers (NULL, groupname, 1, &buffer, MAX_PREFERRED_LENGTH, &entriesRead, &totalEntries, &resumeHandle); for(int i = 0;i< entriesRead ;i++) { //here i wan to enumerate but how } int n=0; return 0; }

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C / C++ / MFC c++ data-structures question

  • convert vbscript to c++
    M Mogaambo

    how can i convert below code from vbscript to c++ strComputer = "." Set colGroups = GetObject("WinNT://" & strComputer & "") colGroups.Filter = Array("group") For Each objGroup In colGroups 'Wscript.Echo objGroup.Name if objGroup.Name ="Administrators" then For Each objUser in objGroup.Members Wscript.Echo vbTab & objUser.Name Next end if Next

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C / C++ / MFC c++ data-structures question

  • wmi problem
    M Mogaambo

    Hi, I want to read all the entries that are applied through group policy using wmi. How can i do that ?????????????

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C / C++ / MFC question help

  • word like editor
    M Mogaambo

    I mean what htmleditor available in web , want c# desktop application.

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# csharp asp-net

  • word like editor
    M Mogaambo

    HI I am developing a project in c# desktop in which i want editor like http://www.asp.net/ajax/ajaxcontroltoolkit/samples/HTMLEditor/HTMLEditor.aspx[^][^] It is in web but i want same in desktop, do any have done that before. regards

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# csharp asp-net

  • vsto problem
    M Mogaambo

    EliottA wrote:

    That people like you come and demand code, and you get pissy when you don't get it.

    I am just asking has any one done that before bcoz i googled alot and i didn't came up with an answer, <blockquote class="FQ"><div class="FQA">EliottA wrote:</div>... and to that effect you should get fired. </blockquote> Why would i, did you know all the answers of c# are you a master or architect of c# who knew every thing or u r genius by birth.I dont know my boss always happy on my work and i gave him job done in deadline . Did you not google if you don't know the answers, did u not turned down to codeproject like forums to know your answer.

    EliottA wrote:

    I went through your posts, and no, you haven't. Not once.

    I told u i am talking of critical codes which i gave them when they asked me thru email, whether it is paypal code or wire transfer code, i always help to those who asked me thru email.

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# csharp help

  • vsto problem
    M Mogaambo

    what is the problem with u , i don't know i think you may be a frustrated coder who are not getting projects from retacoder and for your kind information this not of any client project but it is a project which is asked by my boss, he wants me to develop an addin in outlook which allows him to send multiples message to clients , but not using bcc or cc.one client should get one message and their mail id should be in To:. I think it is enough for you to understand , dont make this forum ugly for the first time in 2 years i got reply like i too have given critical codes to many fellow members but i didn't ask them blah blah blah.

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# csharp help

  • vsto problem
    M Mogaambo

    ok , don't give me any code any suggestion. Please don't give this useless reply.

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# csharp help

  • vsto problem
    M Mogaambo

    Can anybody have code , of retrieving the signatures in c# in OUTLOOK 2007. i am developing an addin in outlook 2007,which sends email but what i want is that default signature of the sender should be send automatically with each email message. Regards

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# csharp help

  • How can I read this xml?
    M Mogaambo

    Actually it is output from a webservice but now i want to parse it. how do i ? is this will work XmlTextReader reader = new XmlTextReader("C:\\links.xml"); while (reader.Read()) { XmlNodeType nodeType = reader.NodeType; switch (nodeType) { case XmlNodeType.Element: Console.WriteLine("Element name is {0}", reader.Name); if (reader.HasAttributes) { for (int i = 0; i < reader.AttributeCount; i++) { reader.MoveToAttribute(i); Console.WriteLine("Attribute is {0} with Value {1}: ", reader.Name, reader.Value); } } break; case XmlNodeType.Text: Console.WriteLine("Value is: " + reader.Value); break; } }

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# question com xml json

  • How can I read this xml?
    M Mogaambo

    I mean how can i parse it.,

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# question com xml json

  • how can i read this xml ?
    M Mogaambo

    <fres:feinsearchresponse xmlns:fres="http://api.feinsearch.com/apiresponse"> - fres:searchresults - fres:searchresult <EIN>320095501</EIN> </fres:searchresult> </fres:searchresults> </fres:feinsearchresponse>

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    ASP.NET question com xml json

  • How can I read this xml?
    M Mogaambo

    <fres:feinsearchresponse xmlns:fres="http://api.feinsearch.com/apiresponse"> - fres:searchresults - fres:searchresult <EIN>320095501</EIN> </fres:searchresult> </fres:searchresults> </fres:feinsearchresponse>

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# question com xml json

  • Crysatal Report Problem
    M Mogaambo

    Hi i am new bee in crystal report, I have created necessary rpt file and bind it with a csv file, but in my one of field which is IPAddress which has value 10.169.57.101 , When I preview report it is showing 10.70 which it is rounding off but i don't want this behavior , i want to display 10.169.57.101 as it is, how can i do that. Please F1 F1 F1.

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    C# help question

  • password strength checker
    M Mogaambo

    Hi i am looking into implementing the ajax toolkit password strength control and was wondering if it is possible to use this control to prevent the user from submitting the form. I have got the control working so that it informs the user of the strength of their password however i am able to submit the form even if the password requirements are not met.

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    ASP.NET business

  • Is Sql to Linq is dead ?
    M Mogaambo

    Just google the heading you would get information that Sql To Linq is abandoned by Microsoft. Is it worth to learn Linq to Sql.

    “You will never be a leader unless you first learn to follow and be led.” –Tiorio "Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

    ASP.NET csharp database linq 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