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
N

Nitheesh George

@Nitheesh George
About
Posts
132
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help required on Database Model
    N Nitheesh George

    Hi Everybody, Please note that I am not a very senior developer so want help from you guys... We are going to start a new project which is very similar to Shopify. The proposed solution will include the following, 1. A admin site which manages Merchants. Here the merchants will have multiple stores under him. 2. A Tablet client which downloads/updates the data from/to the website using web services. My questions is, 1. So while designing the database model whether is it a good idea to keep separate databases for each merchant or keep a single database?. 2. How much data can be kept in a single table?. 3. Regarding the scalability and maintainability which is the proper design, single database or multiple database? 4. Is there a bottle neck in MS SQL server when creating multiple databases instead of one?. 5. Which kind of sever solution in this case we need to propose, Cloud based database or Godaddy like hosting server?. Can a godaddy like hosting service provide a performance like Amazon. Please note that we are planning to use MS SQL server for keeping the data. Thanks & Regards, Nitheesh George

    Nitheesh George http://www.simpletools.co.in

    Database database hosting mobile sql-server wcf

  • How to pass a window handle to another as command line argument.
    N Nitheesh George

    Hi, I am developing application which is launched by another application. I wanted to notify the parent application (the launcher) that the task successful or failed. So I need to pass the main window handle of the launcher application to my second application like /CallingProgramWindow="0001009C". Then how can i convert the string back to window handle. And is this method is the right way to do this.? I am using VC++ to develop the application. Thanks Nitheesh Nitheesh George http://www.simpletools.co.in

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

  • [SOLVED] I need to copy (CTRL+C) a web page... C++ [modified]
    N Nitheesh George

    Hi Ram, This is possible and your thinking is correct. Only you need is to get focus to the browser control then simulate the Ctrl+A and Ctrl+C using SendInput API. So in your code you need to wait for the browser window to appear and find the browser control then give focus to that by sending SetFocus. now simulate the keystrokes. But there always a chance for something unexpected results since any other window activation will make your task difficult. hope this helps Nitheesh George http://www.simpletools.co.in

    C / C++ / MFC csharp c++ html design json

  • problem to draw line in list control
    N Nitheesh George

    Hi You need to handle ListView custom draw and draw the line using the Device Context. Find ListView custom draw article in code project. Nitheesh George http://www.simpletools.co.in

    C / C++ / MFC css help tutorial

  • How to reference the loaded instance of Class A in Class B
    N Nitheesh George

    Hi, You need to use the Singleton pattern to achieve this. Please find the example below public class A { private static A _instance; private A() {} public static A GetInstance() { if(_instance == nulll) _instance = new A(); return _instance; } } public class B { public void Somemethod() { A a = A.GetInstance(); . . . do somethig . . } } Note that we make the constructor of class A private. And class A holds a instance of itself in _instance variable. This is for to make sure that an out side method cannot create an instance of A. Then we will provide a static method in class A like GetInstance where we create a new instance if an instance is already not exist and return the current instance Hope this helps Nitheesh George http://www.simpletools.co.in

    C# help tutorial question

  • Is any way to draw Background Image?
    N Nitheesh George

    Hi Please find the following link which answers your problem. Flicker Solution[] Nitheesh George http://www.simpletools.co.in

    C / C++ / MFC graphics winforms question

  • Error message running exe
    N Nitheesh George

    Hi, This issue is related to the supporting dll's, CRT, MFC and and any other thirdparty and make sure that u also include the manifest of these supporting dll's. Hope this helps. Nitheesh George http://www.simpletools.co.in

    C / C++ / MFC help question workspace

  • Can we stop and .exe from anthoer .exe
    N Nitheesh George

    Hi, I am not sure this is possible, but If you do so, I think there will be a possibility for deadlock. Nitheesh George http://www.simpletools.co.in

    C / C++ / MFC debugging career

  • problem when using (detours lib) SetDll.exe to Add a dll to an exe file.
    N Nitheesh George

    Thank you Albert :) Nitheesh George http://www.simpletools.co.in

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

  • Control forms of an app
    N Nitheesh George

    Hi try the following. frmStatus _frmStatus = new frmStatus(); frmStatus.parent = this; frmStatus.showInTaskbar = false; _frmStatus.Show(); //doing some operations and modifying attributes to controls of frmStatus form _frmStatus.Close(); hope this helps Nitheesh George http://www.simpletools.co.in

    C# question

  • problem when using (detours lib) SetDll.exe to Add a dll to an exe file.
    N Nitheesh George

    Hi, After reading your posting 3 times, i think that you wanted to a dll reference to another project, right?. If so, when you create a dll project with some export functions the IDE adds the exporting function as like extern "C" __declspec(dllexport) void myFunc() { } This tells the C++ complier not to use name mangling. So you can use LoadLbrary to get a pointer to this function in this dll like HMODULE hMod = LoadLibrary("MyDlLL.dll"); GetProcAddress(hMod, "MyFunc"); this works well you specify extern "C"(Please see MSDN to know more about this). For a dll that doesn't exports any functions/class don't allow accessing the its functions or classes. If you don't wish to use the loadLibrary u can do the following steps to add a reference to a dll. 1. Mark the class as exported (__declspec(dllexport) class classA) 1. add the header file of the dll you want to refer. 2. Add the lib file of the dll to the linker options(Additional dependencies) of your project. 3. Make sure that you specify the path to lib correctly. 3. compile. Hopes this helps. Nitheesh George http://www.simpletools.co.in

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

  • problem when using (detours lib) SetDll.exe to Add a dll to an exe file.
    N Nitheesh George

    Hi, From your posting it is not clear what you want to achieve. Please be specific and state clearly your actual problem. Nitheesh George http://www.simpletools.co.in

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

  • Control forms of an app
    N Nitheesh George

    Hi, From your posting I think that you want to show the main form in taskbar and not the status form when it displayed. To solve this issue try setting parent property of the status form. Hope this helps. Nitheesh George http://www.simpletools.co.in

    C# question

  • How to improve listbox databind in WIndows Mobile 6
    N Nitheesh George

    Hi, Use thread to load and fill the data that will make your application responsive while the data is loading. Using thread in your application is not big deal but you have to take care about thread synchronization in your code. hope this helps. Nitheesh George http://www.simpletools.co.in

    C# database help tutorial question code-review

  • How do I defined property in C#?
    N Nitheesh George

    Hi, To add a property say Name do the following in your class. private string _name; public string Name { get{ return _name;} set {_name = value;} } hope this helps. Nitheesh George http://www.simpletools.co.in

    C# question csharp tutorial

  • How to reduce Flickering ?
    N Nitheesh George

    Hi Also create a memory DC and select this image to this DC. And use this DC as the Source in API BitBlt, StretchBitBlt etc. Hope this helps Nitheesh George http://www.simpletools.co.in

    C / C++ / MFC question tutorial

  • Use Modeless Dialog inside MFC DLL
    N Nitheesh George

    Hi, From your posting, I think that you wanted to a dialog box which is added a resource in your MFC dll. If I am right, It is a matter of simple. Please see the sample below. extern "C" __declspec(dllexport) showMyDialog(CWnd *parent) { AFX_MANAGE_STATE(AfxGetStaticModuleState( )); CDialog *myDialog = new CDialog(IDD_DIALOG1, parent); myDialog->ShowWindow(SW_NORMAL); } Make sure that you release the allocated memory in WM_NCDESTROY message handler code. Then about the code. There is a problem when we want to show a dialog from an MFC DLL. The MFC will using main application resource handle to find the specified resource. If you not specify the AFX_MANAGE_STATE(AfxGetStaticModuleState( )); at the begginig of the exported function, the MFC framework will try to find the resource in main application's resource. If the specified resource not found, then the showWindow fails and if found, MFC will try to load that resource may causing an unexpected behaviour. For more infomation see the MSDN documentation of AFX_MANAGE_STATE(AfxGetStaticModuleState( )); Hope this helps Thanks Nitheesh George Nitheesh George http://www.simpletools.co.in

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

  • How to add reference of a dll in a Visual Studio Project
    N Nitheesh George

    Hi, You can add the existing project to your solution and then add the lib of that dll project in linker options of the project you want add a reference. Hope this helps Nitheesh Nitheesh George http://www.simpletools.co.in

    C / C++ / MFC csharp visual-studio tutorial question

  • Win32 DLL Resource not found Error
    N Nitheesh George

    Hi Iain, I am loading the dll using LoadLibrary from a MFC application. And i am using a global HINSTANCE value from DllMain.But still this cause problem. Is this cause the resource handle of the dll be changed? thanks Nitheesh

    Jose Jo Martin http://www.simpletools.co.in

    C / C++ / MFC help c++ json tutorial learning

  • Win32 DLL Resource not found Error
    N Nitheesh George

    Hi every one, I develpoing a MFC application which uses a Win32 dll. This Win32 dll contains a DIALOG Box resource. I wanted to show this dialog by calling an exported function from this dll. But when calling this dialog through DialogboxParam API it returns with error 1812( RESOURCE NOT FOUND). I am solved this problem in MFC by calling AFX_MANAGE_STATE(AfxGetStaticModuleState( )). How to do this in Win32 way. thanks Nitheesh

    Jose Jo Martin http://www.simpletools.co.in

    C / C++ / MFC help c++ json 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