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
S

s196675m

@s196675m
About
Posts
65
Topics
41
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • socket connection when Messenger behind router
    S s196675m

    There is lot of example for messenger or chat application. I did not find any example which will work when computer is behind router. There are many suggession about port forwarding or router configuration but this is not the case when I use Yahoo, MSN, AOL messsenger, skype or P2P. I don't need to do any configuration in my router for this messenger to work. Is there any idea, example , link how these messenger connect without any router configuration from client side. I read lot of forum but not clear how can I do it. I know how to connect two machine using socket which assumes, machines has public IP address or within local network. I will really appreciate your idea/ suggession. Thank you.

    C# tutorial sysadmin question lounge workspace

  • How to call a method from a running service?
    S s196675m

    Hi Thank you for your reply. My question is not about the type of services. I have a windows service running and suppose it has a Method (contract) called GetTime(). From another service or application,how can I call GetMethod() of the other running windows service. Thank you

    C# tutorial question csharp wcf

  • How to call a method from a running service?
    S s196675m

    Windows has many services running. How can I call a method from a particular service from my application. Suppose Service name "ftpsvc" is running. From my aplication I want to call a method of ftpsvc service to see the return value. I have some idea about Remoting, WCF. Any example code or pointing to the right direction will be helpful. thank you.

    C# tutorial question csharp wcf

  • App.config
    S s196675m

    I am testing a dll by including it in a project. In that project I have a App.config file where there is a sharedListeners tag with one or more custom listener. Test is success in the case. ============================== I am testing that dll in another project where there is a configuration file but name is not App.config instead name is xxxx.yyyy.config. Test fail in this case. No log file generated from custom listener. Exact code inside both config file only name is different. Changing name to App.config works fine but this is not an option for me. How can I configure the application, so that it will take the parameter from config file even though name is not App.config. Any idea will be greately appreciated

    C# testing beta-testing question workspace

  • How to add IP address to DNS server?
    S s196675m

    Any example code or idea will be highly appreciated. Thank you.

    C# tutorial sysadmin question

  • What is the equivalent C# syntax of void SomeFunction( array<object^>^ &updatelist)
    S s196675m

    thank you for your suggession. Actually I should rephrase my words. The VC++ function resides in a dll. when I tried to call this function from C# code, the intellisence showed me the following function signature in C# void SomeFunction( object[]* obj); Now my question is ,how to pass a pointer to an array of object in C#. Suppose I have the following array and I want to pass this array to the above function. object[] obj = new object[4]; This array will be modified in the dll and should reflect the modification in the C# program. Thank you.

    C# csharp c++ data-structures help question

  • What is the equivalent C# syntax of void SomeFunction( array<object^>^ &updatelist)
    S s196675m

    void SomeFunction( array<Object^>^ &updatelist) The above function is written using in VC++ managed systax. The equivalent of array<Object^>^ is Object[] I like to know what is the equalalent systax in C#. Important: There is a address symbol before the argument name, which means passing an array by reference so that the array can be change from inside the function. Any help is appreciated Thank you

    C# csharp c++ data-structures help question

  • How to get network connection name
    S s196675m

    Yes, I did and I have found the property. Unfortunately I overlooked this property in my previous investigation. The Property name is "NetConnectionID" of "Win32_NetworkAdapter" class. Thank you

    C# tutorial sysadmin workspace

  • How to get network connection name
    S s196675m

    Yes, I did. Thanks

    C# tutorial sysadmin workspace

  • How to get network connection name
    S s196675m

    When I open the network connection from the control panel, I can see several connecton for differnt network interface. example "Local Area connection"; I want to get this connection name == "Local Area connection" == programatically. For local machine it is possible using NetworkInterface Class but I am trying to get it for a remote machine. NetworkInterface class can not used for remote machine. I used WMI for remote machine connection configuration but I am able to get all related information for any interface but no property is found in Win32_NetworkAdapterConfiguration class which is directly related to my requirement. Caption, Name, and other property gives me some other information but not the thing I am looking for. Any idea, hint will be helpful. Thank you

    C# tutorial sysadmin workspace

  • How to configure TCPIP programatically
    S s196675m

    when I open the property dialog for Internet protocol version 4 (TCP/IP) for any connection, there is a advanced button. If I click this advanced button, another dialog will showup. For the IP setting tabs, I can add or remove IP addess to/from this list box. Now I want to do same thing programatically. Is there any way to do it? I tried to add IP address to the registry manually, even it does showup this dialog but I am not able to ping this this newly added Ip address from another machine but When I add IP address manually using this dialog box, it works fine. Is there any way to copy this same functionalities to add IP address to this box. Any advice or hint will be appreciated greatly. Thank you.

    C# windows-admin tutorial question announcement

  • How to call base class method
    S s196675m

    From inside the overriden virtual function of a derived class, how can I call the base class function. The C# equivalent is base.SomeVirtualFunction(); I need VC++ managed equivalent. Thank you.

    Managed C++/CLI csharp c++ tutorial question

  • How to attach and detach file from a filestream
    S s196675m

    Hi When I create a filestream I have passed a filename in the constructor. Later on how I can detach the existing file from the filestream and attach a new file with existing filestream. thank you.

    C# tutorial

  • How to send more than one parameter to constructor using initializeData attribute
    S s196675m

    Hi I have the following code <listeners> <add name="TestTrace" type="MyNameSpace.TestListener, TestListener, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" traceOutputOptions="None" initializeData="MYlog.txt"> </add> </listeners> Whatever value I put in initializeData will be passed to the constructor of the specified listener. My question is, How can I send more that one parameter in the constructor using initializeData. Suppose my second parameter is integer. Thank you

    C# question tutorial announcement

  • How to assign IP address to a network card
    S s196675m

    Hi Does anybody know how to assign IP address or addresses to a network card. After successfull addition, I should be able to pink to that IP address from another machine. Another questions: Can One network card have multiple IP addresses? Thank you.

    C# sysadmin tutorial question

  • Preprocessor confusion
    S s196675m

    Here is two sets of preprocessor I did not understand completely, First one is trying to define the class if it is not already defined and the second one is trying to define a header file if it is not already defined. But my quesion is what is the syntax or rules for the identifier. Why there is a underscore before the word Class and H (in second example). The way I understand is _Class means for Class and _H means for Header. In header case, it is all upper case. Why it that. I understand #define, #ifndef but I am not clear about the systax for identifier. If any body can answer my confusion or direct me to any article I will be glad.

    ////////////////////////////
    #ifndef TEggCodeParser_Class
    #define TEggCodeParser_Class
    ////////////////////////////

    ////////////////////////////
    #if !defined( EXAMPLE_H )
    #define EXAMPLE_H
    //////////////////////////

    Thank you.

    C / C++ / MFC tutorial question

  • unique problem
    S s196675m

    Thanks

    ATL / WTL / STL help question c++ dotnet graphics

  • unique problem
    S s196675m

    Hi Thank you for your good point. Is there any function which can find unique elements in an array vecor even though unique elements may not be adjacent.

    ATL / WTL / STL help question c++ dotnet graphics

  • unique problem
    S s196675m

    Hi Is there anybody know, what mistake I made in the code . Thank you

    ATL / WTL / STL help question c++ dotnet graphics

  • unique problem
    S s196675m

    HI I am new to this STL form. I have a simple question, unique does not work as expected. Here is my test code

    			int iList\[4\] = {0};
    			iList\[0\] = -131;
    			iList\[1\] = -131;
    			iList\[2\] = -343455555;
    			iList\[3\] = -131;
    
    			vector<int> iNeighborList(iList, iList + 4);
    			vector<int>::iterator it;
    			
    			it = unique(iNeighborList.begin(), iNeighborList.end());
    
    			iNeighborList.resize(it - iNeighborList.begin());
    

    // At this point
    //expected elements of iNeighborList are -131, -343455555
    // but actual element I got are -131,-343455555, -131
    // Why third element apprear?

    			it = remove(iNeighborList.begin(),iNeighborList.end(),-343455555); 
    			iNeighborList.resize(it - iNeighborList.begin());
    
    			int isiz = iNeighborList.size();
    

    I am using VS2005 to compile it using Pure MSIL (/clr:pure) switch. Can anybody help me why I am getting uncexppected result. Thank you

    ATL / WTL / STL help question c++ dotnet graphics
  • Login

  • Don't have an account? Register

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