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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

Alan Martinis

@Alan Martinis
About
Posts
12
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Selected TreeView Item [modified]
    A Alan Martinis

    Thank you for idea (better to have something than nothing). I never did create any control dynamically - It is far easy to create control with some visual tool than to type size, distance between them,.. manually. From another forum, one developer advice me to use "UserControl". What do you think of that? Thank you!

    C# help csharp c++ tutorial visual-studio

  • Selected TreeView Item
    A Alan Martinis

    Hi, please help me if you know how… Something is bothering me - something that I didn't know how to handle it using Visual C++, therefore I don't know how to do it now with C#. Description: I have form with SplitContainer control on it, where on the left side I have TreeView control, and on the right side, I would like (depending on selected item in TreeView ctrl) to have different set of other controls (buttons, editBox,…etc.) Correct me if I'm wrong – the only easiest way that came up my mind is PANNEL control. Number of panels should be the same as number of items in the TreeView control. After on in the application, depending of selected item, I can use method .Hide() or .Show() to manipulate those panels. Example For example I have 20 items in TreeView control, therefore I should have 20 different panels. Furthermore, when I have 20 panels on the same form, and each of them is covering right side of SplitContainer (complete area), the only panel I can see is the latest one (twentieth). With this „panel“ concept, issue I found here is in the case if I have to change something on the third panel (e.g. to add new checkBox on it) . How to reach third panel? Do I have to move 17 panels to one side in order to reach third one (to be visible to work on it)? I believe that there should be something more elegantly – but I don't know what? I use SharpDevelop, but if you know that solution for my problem have solution in Visual Studio, please suggest! Great example will be Computer Management Console. If you click on “Removable Storage” or “Disk Defragmenter” or any other item in TreeView control, depending on it on the right side you will have respectively related set of controls. Thanks, Alan

    C# help csharp c++ tutorial visual-studio

  • Selected TreeView Item [modified]
    A Alan Martinis

    Hi, please help me if you know how… Something is bothering me - something that I didn't know how to handle it using Visual C++, therefore I don't know how to do it now with C#. Description: I have form with SplitContainer control on it, where on the left side I have TreeView control, and on the right side, I would like (depending on selected item in TreeView ctrl) to have different set of other controls (buttons, editBox,…etc.) Correct me if I'm wrong – the only easiest way that came up my mind is PANNEL control. Number of panels should be the same as number of items in the TreeView control. After on in the application, depending of selected item, I can use method .Hide() or .Show() to manipulate those panels. Example For example I have 20 items in TreeView control, therefore I should have 20 different panels. Furthermore, when I have 20 panels on the same form, and each of them is covering right side of SplitContainer (complete area), the only panel I can see is the latest one (twentieth). With this „panel“ concept, issue I found here is in the case if I have to change something on the third panel (e.g. to add new checkBox on it) . How to reach third panel? Do I have to move 17 panels to one side in order to reach third one (to be visible to work on it)? I believe that there should be something more elegantly – but I don't know what? I use SharpDevelop, but if you know that solution for my problem have solution in Visual Studio, please suggest! Great example will be Computer Management Console. If you click on “Removable Storage” or “Disk Defragmenter” or any other item in TreeView control, depending on it on the right side you will have respectively related set of controls. Thanks, Alan -- modified at 2:01 Sunday 26th November, 2006

    C# help csharp c++ tutorial visual-studio

  • Function IsDestinationReachable
    A Alan Martinis

    Sorry...misunderstanding From options you may see that /IMPLIB:"Sensapi.lib" is there. /OUT:"Debug/MYPRG.exe" /INCREMENTAL /NOLOGO /DEBUG /PDB:"Debug/MYPRG.pdb" /SUBSYSTEM:WINDOWS /IMPLIB:"Sensapi.lib" /MACHINE:IX86 I also try to include Sensapi.DLL file in this .cpp source, but still get same error. Do you think that I have to configure, or setup, or.... I don't know what else should I and where to... Should I put #include "Sensapi.h" directive on some particula place, should I include this library somwhere else except this (MYPROG Property Pages --> Configuration Properties --> Linker --> Advanced --> Import Library --> Sensapi.lib) ? I try to find some source code (or project file) that use this function on Internet, but it wasn't successfully. Do you have any other idea what might be wrong ?

    C / C++ / MFC help tutorial question

  • Function IsDestinationReachable
    A Alan Martinis

    Yes, why ?

    C / C++ / MFC help tutorial question

  • Function IsDestinationReachable
    A Alan Martinis

    Interesting thing is that, if I omit the Sensapi.lib, I get the same error as I get it with included library ?!

    C / C++ / MFC help tutorial question

  • Function IsDestinationReachable
    A Alan Martinis

    Still doesn't working...thank you for your effort, but please help me one more time .. I'm gona crazy wit this... This is part of my code. As you may see that I include Sensapi.h, and in properties of application I include library SensAPI.Lib (/IMPLIB:"SensAPI.Lib"). Do you have any earthly Idea what might be wrong with this ? #include "stdafx.h" #include "MYPRG.h" #include "MYPRGDlg.h" #include "Sensapi.h" #ifdef _DEBUG #define new DEBUG_NEW #endif ...... BOOL MYPRGApp::InitInstance() { ... QOCINFO oci; oci.dwSize = sizeof(QOCINFO); IsDestinationReachable("www.google.com", &oci); ....

    C / C++ / MFC help tutorial question

  • Function IsDestinationReachable
    A Alan Martinis

    Can you show me how (few lines) including how to create some LPQOCINFO ? This is my source part that generate this error. if ( IsDestinationReachable("www.google.com", NULL) == TRUE) AfxMessageBox("Google ok !");

    C / C++ / MFC help tutorial question

  • Function IsDestinationReachable
    A Alan Martinis

    Can someone help me using function "IsDestinationReachable". When I try to build my application, I got folowing error message: OPFB error LNK2019: unresolved external symbol _IsDestinationReachableA@8 referenced in function "public: virtual int __thiscall MYPRGApp::InitInstance(void)" (?InitInstance@COPFBApp@@UAEHXZ) If someone have some code examle how to use this function, please send me. I include "Sensapi.h" and use library "Sensapi.lib". Thank yoou !

    C / C++ / MFC help tutorial question

  • Determine when I am connected on LAN
    A Alan Martinis

    Can you help me also with next one more thing: if I detect that I'm connected on my LAN, how can I measure speed between my pc and server (I know only name of that server). Tnx

    C / C++ / MFC question sysadmin

  • Determine when I am connected on LAN
    A Alan Martinis

    Ok, thank you, sound's great, but since I'm almost new in this world, can you please give me some line of code ? Tnx

    C / C++ / MFC question sysadmin

  • Determine when I am connected on LAN
    A Alan Martinis

    Please, If someone know how can I determine within my application if network cable is unplugged ? Thank you ! Alan

    C / C++ / MFC question sysadmin
  • Login

  • Don't have an account? Register

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