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
S

SelvaKr

@SelvaKr
About
Posts
62
Topics
30
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Querying on existing recordsets
    S SelvaKr

    Hi Jochen Thanks for your response. I am already reviewing the code and doing that. But still it fails at times. So I was thinking whether i could keep them all in memory so that the DB hits can be avoided. Please share your thoughts. Thanks Selva

    Selva

    C / C++ / MFC c++ database help question com

  • Querying on existing recordsets
    S SelvaKr

    Hi My application is in C++/ATL/COM and uses the Access database for storing configurations. Various DLLs and EXEs (and threads) that are part of my application query the database when needed. When doing so, I am getting the database locked message ('[Microsoft][ODBC Microsoft Access Driver] The database has been placed in a state by an unknown user that prevents it from being opened or locked' in the log) randomly and the application fails to continue. I am assuming that this problem happens due to the shared access of the database. My question is: Can i get the complete database in memory (in form of recordsets for every table) during the launch and query the recordsets directly instead of querying the database? I believe this might solve the database locking problem. Any help is appreciated. Thanks Selva

    Selva

    C / C++ / MFC c++ database help question com

  • ToolTip text in WTL
    S SelvaKr

    Hi All I am working on a localization project. I am trying to localize the Tool tips of the Tool bar buttons that are coming in English. Tool tips are specified in the resource as direct strings in the prompt field of the properties. Can you please advice me on how to refer the strings from String Table instead. Any help is appreciated. Thanks in advance.

    Selva

    ATL / WTL / STL c++ help tutorial learning

  • IP address control
    S SelvaKr

    Thanks Johnny...

    Selva

    C# csharp design question

  • IP address control
    S SelvaKr

    Thanks Pete...

    Selva

    C# csharp design question

  • IP address control
    S SelvaKr

    Hi, I am a newbie to .NET. I need to design an IP address control. I can design a control on my own with edit boxes. But before that i want to confirm whether we have any default IP address control in VS2008. I could not find it in the Tool box. Do we have any default IP address control in VS2008 or 2010? Thanks.

    Selva

    C# csharp design question

  • Allocating memory for function pointers [modified]
    S SelvaKr

    Hi Ash, Thanks. It works.

    Selva

    C / C++ / MFC tutorial security performance help question

  • Allocating memory for function pointers [modified]
    S SelvaKr

    Hi, I am working in a porting project where i have to convert the thread local variables (declared with __declspec(thread)) to TLS allocations (using TLS APIs). I am able to do it for variables. How to do it for function pointers? (thread local function pointers) for example, I have a thread local function pointer declared as, __declspec(thread) BOOL (WINAPI *Test)(Short a, _TCHAR b, BOOL c); Is it possible to convert this by using TLS APIs? Is it possible to allocate the memory (4 bytes) for pointer "Test"? Any help is appreciated. Thanks.

    Selva

    C / C++ / MFC tutorial security performance help question

  • Thread local variables
    S SelvaKr

    Thanks cmk.

    Selva

    C / C++ / MFC security performance question

  • Thread local variables
    S SelvaKr

    Hi, I am working on a project, where i see a declaration of a thread local variable as below. __declspec(thread) long g_nLock[2] = {0, 0}; And this variable is accessed with InterlockedXXX functions. My doubt is, this variable will have the global memory local to every thread. In that case, is it required to use InterlockedXXX functions to access the variable? If i change the allocation and access method of this variable using TLS APIs, do i have to take care of locking? Thanks in advance.

    Selva

    C / C++ / MFC security performance question

  • DLL import problem
    S SelvaKr

    Hi Luc, Thanks for you reply. But my problem was a little different. I had a few thread local variable declarations in the MFC DLL which caused problem while loading at runtime. Now working on it to change the implementation of the variable. Thanks again.

    Selva

    C# help c++ csharp dotnet performance

  • DLL import problem
    S SelvaKr

    Hi All, I am a newbie for C# currently working on a porting project. I need to port and use a VC++ (6.0) MFC extesion DLL methods in C# (8.0) application. To do that, I created a managed wrapper dll (MFC Regular DLL shared with /CLR turned ON) from C# and referred the MFC extension DLL from it. But when i call the interface function written in the wrapper DLL from the C# application, I am getting the below error. "Unable to load DLL 'TestWrapper.dll': Invalid access to memory location. (Exception from HRESULT: 0x800703E6)" This error occurs only when i add the MFC extension DLL as the dependency to the wrapper dll. If the remove that dependency 'TestWrapper.dll' loads successfully. Note: All DLLs and C# application is in the same path. Problem happens in Windows XP SP3. Any help is appreciated. Thanks in advance.

    Selva

    C# help c++ csharp dotnet performance

  • How to get the hidden drives in windows?
    S SelvaKr

    Any entries in the Registry after the removal from Device manager? Key - HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

    Selva

    C / C++ / MFC c++ algorithms help tutorial question

  • file share problem
    S SelvaKr

    Just by going thru the link, i understood that, it talks about memory mapping files. But i think process address space is limited to 4GB in 32 bit windows. (2GB-Process; 2GB-Kernel) Hence if you need 3GB of space at a point from your application, you maynot be able to address it. Check for /3GB switch (even though it is not advisable)... which may give you some more information to approach your problem... As Randor pointed, u may have to unmap and map whenever required.

    Selva

    C / C++ / MFC help tutorial

  • Show/Hide part of a CView / CFormView
    S SelvaKr

    Try Splitter windows.. You can get lot of articles in CP..

    Selva

    C / C++ / MFC question

  • Identifying and Terminating a particular local port.
    S SelvaKr

    Hi All, When database server abruptly goes down, Client hangs in ExecuteSql statement. I know only the remote(database) port number. Is there any way to identify the local port that is connected to the remote port and terminate it? Any help is appreciated. Thanks in advance. Regards, Selva

    Selva

    C / C++ / MFC database sysadmin help question

  • SendMessage Hangs
    S SelvaKr

    Hi, Thanks for the reply. I will try postmessage instead of SendMessage and reply in case of any problems. Thanks a lot.

    Selva

    C / C++ / MFC help question database design json

  • SendMessage Hangs
    S SelvaKr

    Hi, Thanks for the reply. Main thread won't be waiting for the worker thread.. only if the second request from the worker thread comes, it will be processing. But i too suspect that its because of the deadlock. But my doubt is, whether passing the global variable (which will be accessed by both the threads) causes this hang. any way storing the value in global variable will happen with proper locks from both the threads. But whether passing this as the parameter to the SendMessage causes any problem? Thanks in advance.

    Selva

    C / C++ / MFC help question database design json

  • SendMessage Hangs
    S SelvaKr

    Hi, Thanks for the reply. Code will look like below. int g_nInt; Main thread LRESULT CMyDlg::OnProcessMsg(WPARAM wparam, LPARAM lparam) { Display Message box ....... Get result from user. return 0; } Worker thread { get status from DB. GetMainWnd()->SendMessage(PROC_MSG, wp, g_nInt); ..... GetMainWnd()->SendMessage(PROC_MSG2, wp, lp); ......... } Yes. My main app window looks like freezed (continuous even after an hour). Thanks in advance.

    Selva

    C / C++ / MFC help question database design json

  • SendMessage Hangs
    S SelvaKr

    Hi, I have 2 threads in my app. one is main application thread which has UI. second is the worker thread. second thread will get some status from a database and send the information to the main thread using SendMessageAPI. One of the parameters in the SendMessage API is a global variable across the threads. After the recieving the message from second thread, first thread will display the error to the user and return the control so that the second thread can monitor the status continuously. But at some point, my app hangs. I suspect that the hang happens in this loop. As the return depends on the response from the main thread (thru user input via messagebox), i could not use SendMessageTimeout API in this case. 1. Is it because of the global variable usage in SendMessage function? Can you please let me know how can i come out of this problem. Any help is appreciated.

    Selva

    C / C++ / MFC help question database design json
  • Login

  • Don't have an account? Register

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