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

Krishnan V

@Krishnan V
About
Posts
20
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Routing configuration
    K Krishnan V

    We have two broadband routers providing internet connections for our office. How do I setup my gateways on the our office nodes (XP Pro), so that we can access internet even when one fails. The problem is that since these routers are always available, but their internet links may fail at times. Therefore, if I have the first router as my gateway, and its internet link fails, I cannot connect to the internet. This despite that I have a second gateway configured on my PC pointing to the second router. From what I have found, Windows passes on my requests to the first gateway as it is available, which cannot locate the server I am trying to connect, because its link is down. Hence, my connection fails. So, how can I setup a routing configuration such that my PC can transparently switch over to the second router when the first one's internet link goes down? Also, how can I implement some kind of load balancing, so that some nodes are routed thru router#1 and some thru router#2 when both are available? Thanks!

    System Admin question workspace sysadmin help

  • okay developer news now.... from nVidia
    K Krishnan V

    Well, I have heard about similar attempts (http://www.gpgpu.org/[^]) to use the GPU for computational purposes, like solving big sparse matrices, etc... But they used round-about mechanisms to achieve them. Since it's now being "officially" supported, using the GPU as an additional processor would be a lot easier. But, considering that a GPU is so powerful, I have one basic question. I had sometime ago developed an OpenGL-based application which "of-course" did frequent screen refreshes. And this hogged the CPU, causing other applications to run poorly. I had to implement some "hand-made" optimizations, which compromised on the ultimate output, but nevertheless served my purpose. My question therefore is, isn't it possible to somehow explicitly transfer all those graphics and computation handling to the GPU instead of the CPU?? I guess there must be some way, but could be that they are either vendor-specific. Anyone with similar experience?

    The Lounge question html asp-net com graphics

  • Setting modem properties
    K Krishnan V

    What I need is to set the modem properties for the dial-up connection I create programmatically. The GetCommState fn works if I have handle to the serial port. I just need to set-up the connection so that whenever the user dials the connection, the correct settings are used to connect with the modem.

    C / C++ / MFC question help

  • Setting modem properties
    K Krishnan V

    I am developing an app, which creates a DUN entry programmatically. The issue I am facing is that, how do I set-up the modem properties like baud rate, h/w flow control, etc. for the modem device I have specified for the entry. Also, how do I change the default settings for a modem like init strings, etc.? Thanks, Krishnan

    C / C++ / MFC question help

  • Replacing open/save dialogs
    K Krishnan V

    My application is used in critical applications. Therefore, normal users are not allowed to use anything outside of my app. Not even calculator! To get access to other applications, I might provide a password-protected option to them.

    C / C++ / MFC question

  • Replacing open/save dialogs
    K Krishnan V

    I want to prevent access to windows explorer when the user is using my app. Therefore, I have created a new desktop to run my app on. This way even though he can run explorer, he cannot practically use it. However, if from my app's open/save dialogs the user right-clicks and selects the explore option, he gets a new instance of explorer running on my desktop.:^) My question therefore is how do I prevent this? As far as my app goes, I can think of replacing the standard open/save and browse for folder dialogs with custom made ones. However, my app uses certain third-party resources for which I cannot do the same. Can I then somehow "hook" these dialog boxes, and prevent the user from running explorer. Any other ideas on achieving my end result are welcome. Thanks!:)

    C / C++ / MFC question

  • Applying group policy
    K Krishnan V

    How do I apply certain group policy settings like hide desktop icons, disable task manager, etc. to a Windows user group? I need to it on a domain as well as on a workgroup computer.

    System Admin question

  • Identifying the interactive user
    K Krishnan V

    Cool Ju wrote:

    Try LogOnUser function to get the token

    I need to run my app on the same session as the current interactive session. LogonUser will create a different session. Furthermore, how do I get to know the username, etc..... I want to achieve something of the sort that DCOM does. For DCOM servers, we have the option to specify to launch it in the interactive user's session. Similar kind of thing is what I am looking for...

    C / C++ / MFC question

  • Identifying the interactive user
    K Krishnan V

    I have service application which has to launch an application in the context of the current interactive user. If there is not interactive user, then the application will not be started. I tried using CreateProcessAsUser, but then I need to have a token to that user's session. How do I get that? Thanks!

    C / C++ / MFC question

  • RPC server startup
    K Krishnan V

    I have an RPC server which listens on TCP/IP endpoints for servicing client requests. It has been working fine all along, until today where on one of our client's PCs (running on W2K SP4), the server fails during its initialization. On analysis of the error logs, I found that the when the RPC server registers its protocol sequence and end-points, it receives the error 1721 (not enough resources available for completion...). I don't understand what's causing this. Any ideas:confused:

    C / C++ / MFC sysadmin help

  • Strange problem...
    K Krishnan V

    Hi, Recently, one of our customers reported a strange problem with our software. It happened so that due to some problem in the power to the computer, the power supply (SMPS) of the PC got damaged. After rectifying the fault, he started using our software, and reported that our application crashes at various locations where it worked fine before. When I check the exception being raised, it says float point division by zero exception. Now all of sudden at various places in my code where I use division (for e.g., progress bars) the application fails there. Could anyone suggest what could have gone wrong and how to fix it?:confused: Thanks, Krishnan

    C / C++ / MFC help tutorial question

  • Creating automatic updating web pages
    K Krishnan V

    Thanks for the suggestions. But, having an embedded Java app or an ActiveX requires that my customers have them pre-installed or that they are automatically downloaded and installed on his computer. Even though I would not prefer such a method, I am still open to it, as I feel it is better than the client doing a periodic refresh. However, will this solution work for browsers running on embedded platforms like, mobile phones, PDAs, etc.? Thanks, Krishnan

    Web Development tutorial sysadmin tools question

  • Creating automatic updating web pages
    K Krishnan V

    Hi All! My company has a requirement, wherein we need to develop a web server which could server data to its clients in "real-time". For example, I need to create a web page for real time stock quotes, which is automatically updated as and when the quotes change. Can the server be designed such that it sends automatic updates to the client as and when the data changes, or does the client have to make an explicit "refresh"? Since I am new to web development, could you please guide me about which tools/technologies can I best use for this purpose. Thanks, Krishnan

    Web Development tutorial sysadmin tools question

  • Avoiding anti-virus warnings with scripts.
    K Krishnan V

    Hi, In one of our applications, we are using a lot VBScripts to get some work done like file transfer, etc., since the requirements for these normally varies and hence is not nice to put into our application itself. Now, the problem we are facing is that when these scripts are executed by our application using the CSCRIPT interpreter, common anti-virus apps like Norton, disable them or pop-up a question to the user. Is there a way to avoid this?? Thanks, Krishnan

    C / C++ / MFC question business help

  • fShared Memory
    K Krishnan V

    Which is better from overall performance point of view - Creating a shared memory (~100MB) on the paging file, or on a separate disk file? Thanks, Krishnan

    C / C++ / MFC performance question

  • Displaying console of service applications
    K Krishnan V

    I have Win32 console-based service app. I want to show its console for debugging purposes on the interactive user's desktop. How can I do this? I use AllocConsole to allocate a console in runtime. Thanks, Krishnan

    C / C++ / MFC question

  • Touch Screen Support
    K Krishnan V

    We have a standard Windows application running on Win2K+ OSes. One of our customers has a special requirement where he needs touch screen monitors. So, my query is regarding the compatibility of my app. Will it require any changes, or does Windows handle it by itself, or do I require any third-party software? Some basic issues like how is right-click handled are not clear to me. Can somebody provide me with some insight into this? Thanks, Krishnan

    System Admin database question

  • Opening HTML Help topic in browser
    K Krishnan V

    How do I open an HTML help topic in a browser window created inside my application? Something like VS.NET!

    C / C++ / MFC question csharp html visual-studio help

  • mfc in a thread
    K Krishnan V

    YaronNir wrote: your case is the second one, UI thread. all UI threads in MFC application must inherite CWinThread class..... then when you call AfxBeginThread(..) method, you pass your dervied-CWinThread object as the parameter. the CWinThread class, has the method : "InitInstance()" there you must create the proper MDI objects you want to display..... I have already done that. But, the problem is how do I create a CWinApp object. Since, my app is a console app, I cannot declare a global variable for the CWinApp object. Also that object would be instantiated in the main thread, whereas my UI is in different thread.

    C / C++ / MFC question c++ design help

  • mfc in a thread
    K Krishnan V

    Hi, I have an existing Win32 console app. I want to now add user interface (MDI) to it, which obviously I would like to be run in a separate thread. I used AfxBeginThread to create a new MFC thread which creates my interface, etc. But, the problem is that in this implementation I do not have any CWinApp object at all, and therefore I cannot use some MFC functions. What is the correct way to create a user interface using MFC in a thread other than the main thread of my app? Thanks, Krishnan

    C / C++ / MFC question c++ design help
  • Login

  • Don't have an account? Register

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