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
K

K Sushilkumar

@K Sushilkumar
About
Posts
18
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Digital Signature: Signer Name
    K K Sushilkumar

    The given link is about "Digital Code Signing" and i need to retrive information programmatically from digital signature embedded in an executable such as signer name and counter signer name.

    C / C++ / MFC cryptography json tutorial

  • Digital Signature: Signer Name
    K K Sushilkumar

    How to programmatically extract or get the signer name and counter-signer name from an exectuable file if it is digitally signed. Is there any API or any raw method.

    C / C++ / MFC cryptography json tutorial

  • Symbian Deflate algorithm
    K K Sushilkumar

    New Symbian executable uses Deflate algoritm for compression. Where can i get help/algo/source related to this algorithm? Thanks in advance.

    Algorithms algorithms help question

  • Symbian executable file format
    K K Sushilkumar

    Symbian has released new executable (E32Image) file format for Symbian OS v9.x. This format is a bit different from the previous one. How can we different the executable whether it is of new format or old format (programatically)? Thanks in advance.

    Mobile question

  • drives list
    K K Sushilkumar

    I have three users viz. User1 User2 User3 User2 has mapped network drive. Now when i enumerate drives using GetLogicalDrieStrings in User1, i only get drives of User1. What i want is to enumerate all the drives including mapped drive in User2 in any user context. How can i acheive this??? Thanks in advance. Regards, K. Sushilkumar.

    C / C++ / MFC question sysadmin

  • Enumerate Hooks
    K K Sushilkumar

    Hi All, How can i enumerate installed hooks? Thanks & Regards, K. Sushilkumar.

    C / C++ / MFC question

  • Get dependent Dll list
    K K Sushilkumar

    You can find out what DLL's are implicitly linked to the DLL or EXE by reading the PE import table. Thanks & Regards, K. Sushilkumar.

    C / C++ / MFC tools tutorial

  • ShellExecute with new instance
    K K Sushilkumar

    Hi All, I am trying to open a web page using the following code.

    ShellExecute(this->m_hWnd, _T("open"), _T("www.xyz.com"), NULL, NULL, SW_SHOWNORMAL);

    It works well. Consider, Default browser is Mozilla Firefox. An instance of the Mozilla Firefox is running with some tabs open in it. The above code will open a new tab (www.xyz.com) in the existing instance. Now what i want is to open my web page with new instance. Thanks & Regards, K. Sushilkumar.

    C / C++ / MFC com

  • How to make topmost control on dialog? [modified]
    K K Sushilkumar

    I am not sure but you can have a try, You need to SetWindowPos for all the controls that intersect with your listbox. The call should be in the same order you would like to. Ex. SetWindowPos(EDIT_1) SetWindowPos(EDIT_2) SetWindowPos(LISTBOX) //Top-most.

    C / C++ / MFC help tutorial question

  • is executable digitally signed
    K K Sushilkumar

    How do we programmatically come to know whether an executable is digitally signed or not? Is the signature in the form of section or a structure? If it is like a structure then is there any document structure for it. Does the size of the signature stored stored anywhere? I am having two samples of same dll viz. signed and unsigned. I find the difference in windiff only at the end of the files. Thanks & Regards, K. Sushilkumar.

    C / C++ / MFC question

  • creating dialogs in a loop
    K K Sushilkumar

    Thank you. It is a good solution. Yes it could help me to some extent in my code. Because the dialogs are already being implemented. And i cannot change them from my side. I can only create the dialogs. As i discussed in earlier post that i was searching for some different technique instead of using if-else/switch for new operator. But as part of education/knowledge the technique used is mind blowing. Thanks & Regards, K. Sushilkumar.

    C / C++ / MFC wpf help tutorial learning

  • How to change the appearence of mouse pointer to sand Time
    K K Sushilkumar

    If you are using MFC then try,

    BeginWaitCursor();
    ...
    EndWaitCursor();

    or

    CCmdTarget::BeginWaitCursor();
    ...
    CCmdTarget::EndWaitCursor();

    Thanks.

    C / C++ / MFC c++ tutorial question

  • creating dialogs in a loop
    K K Sushilkumar

    Yes you are right. To do that task now i am sequentially writing those many statements for each dialogs. I thought this task as challenging. I continued with some research and tryouts. You have suggested about templates, can you please help me out with a piece of code. This is just educational. I haven't stuck for this but I am trying to complete the task in any ways. Though it is silly problem I have spend enough time for it. I hope you understood the problem. Thanks & Regards, K. Sushilkumar.

    C / C++ / MFC wpf help tutorial learning

  • creating dialogs in a loop
    K K Sushilkumar

    Yes that is confusing but it is usable. I'll give you the scenario, I need to write options/settings module for a product. The product is dialog based. Now the options will be in a tree control on the left side. When user clicks a particular option i need to display appropriate dialog. There a 20 such options. To hide or show the respective dialog first they need to be created. The question i posted doesn't relate to number of dialogs to be created. Instead, in a loop how can we provide the typename for new operator. Just refer the root post. Thanks.

    C / C++ / MFC wpf help tutorial learning

  • creating dialogs in a loop
    K K Sushilkumar

    Your solution was actually very good and convincing. But i was trying the same without using switch/if-else or any user defined function. I feel that there may be any other means to achieve the problem. If it is not feasible then i am really sorry for the question i posted. Thanks.

    C / C++ / MFC wpf help tutorial learning

  • creating dialogs in a loop
    K K Sushilkumar

    Your solution is good. But i had given a sample of code. What actually i want to do is to create around 20 dialogs of different types. The resource i can have for this is the array of DLG_INFO. For acheiving this we can extend or add more members to DLG_INFO. Thanks.

    C / C++ / MFC wpf help tutorial learning

  • creating dialogs in a loop
    K K Sushilkumar

    I am sorry that u didn't get the question. what i want to do is similar to the following, float *pf; float *pf = new float; (This is the normal case where float is the typename passed to new operator). (Now consider our problem) int *pi; char *pc; If i have such many different types of pointers. And i want to create memory to that respective pointer with it's respective type in loop. So how am i able to provide typename to the new operator generically in a loop.

    C / C++ / MFC wpf help tutorial learning

  • creating dialogs in a loop
    K K Sushilkumar

    Hi everybody, I am trying to create dialogs in a loop. I am having pointer to each dialog and resource id. Problem is while creating an object of that dialog using new operator. As new requires the typename which i am unable to provide in a loop. Please refer the code below. DlgA *pDlgA; DlgB *pDlgB; typedef struct tagDLG_INFO { CDialog *pDlg; DWORD dwDlgID; } DLG_INFO, *P_DLG_INFO; DLG_INFO arrDlgInfo[2] = { {pDlgA, IDD_A}, {pDlgB, IDD_B} }; for (DWORD dwLoopCount = 0; dwLoopCount < 2; ++dwLoopCount) { arrDlgInfo[dwLoopCount].pDlg = new XXX; //(How to provide typename in a loop). arrDlgInfo[dwLoopCount].pDlg->Create(arrDlgInfo[dwLoopCount].dwDlgID, this); } I tried using macros, templates, RTTI, typeinfo, but i did'nt find any proper solution. Thanks in advance.

    C / C++ / MFC wpf help tutorial learning
  • Login

  • Don't have an account? Register

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