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

Krouer

@Krouer
About
Posts
17
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Java and Windows console
    K Krouer

    Does it exit a way to do something similar to Windows API function SetConsoleCursorPosition? I would like to make the user to wait with the 4 characters : \-/| and with (or wihtout) a percentage value after it like that: - 50% I know how to do it in C/C++, would like to know if it exists a Java solution before I start a JNI dll to do the job. Thanks in advance for your reply.

    IT & Infrastructure c++ java json tutorial question

  • NT Service DCOM server always return 0x80070424
    K Krouer

    I got it. The name of the LocalService appid entry does not match the service name. I have chnage the IDS_SERVICENAME and ATL use a hardcoded name one time and I miss to change it.

    COM c++ help sysadmin tutorial question

  • NT Service DCOM server always return 0x80070424
    K Krouer

    No one??

    COM c++ help sysadmin tutorial question

  • NT Service DCOM server always return 0x80070424
    K Krouer

    Hello, If I register my DCOM exe server as local server, it works fine. If I register it as NT Service, the registration seems good but every call to CoCreateIntance failed with the error ERROR_SERVICE_DOES_NOT_EXIST. If I try to configure with DCOMCNFG.EXE, it prompts the service is installed but it show the same error when I want to apply the modification. When I go in the Service window, my service is present and I can run it/stop it via the Service Manager. In the EventViewer, I can see the info/warning/error message the server drops. The DCOM server is developped under VC++ 6.0 with ATL. Can you give me a hint on how to solve that problem? I have read the Richard Grimes' book but found nothing. I read it again and again wo any success. Thanks, Bruno

    COM c++ help sysadmin tutorial question

  • How to package an ActiveX and a DCOM
    K Krouer

    Ok, I have an ActiveX and a DCOM stub/proxy dll to distribute over the net (for instance over the intranet only ;) ). I have read an article which indicate the use of a cab file. The cab is downloaded but the result is no ActiveX and no DCOM. Perhaps, my INF file is bad but I don't know so I made a search on other articles. I found another one dealing with MSI files, I install Visual Sudio Installer but the MSI is downloaded but it is also considered as ActiveX and it is installed as it. The result is no ActiveX and no DCOM. Do you know a way to do it? Do you know reference where I can find information? Bruno

    IT & Infrastructure com tutorial question

  • Safearray of UDT
    K Krouer

    Joaquín M López Muñoz wrote: Sorry I haven't been more helpful. Bonne chance! Don't be sorry. You have find the solution. I replace the SafeArrayCreateVectorEx by a SafeArrayCreateEx and it works perfectly. Gracias y buenas tardes, Bruno

    C / C++ / MFC data-structures testing tools performance help

  • Safearray of UDT
    K Krouer

    Client are currently in C++ (Console test app and ActiveX) I will give a try with SafeArrayCreateEx instead of SafeArrayCreateVectorEx. Perhaps, they have a bug with that last function. Many thanks Joaquin for your help, Thanks, Bruno

    C / C++ / MFC data-structures testing tools performance help

  • Safearray of UDT
    K Krouer

    The error message: HEAP[musicserver.exe]: Invalid Address specified to RtlFreeHeap( 130000, 1e0690 ) The size return pRecordInfo->GetSize and sizeof(NoteDesc) are identical (value is 12 - 3 32bits floats) I don't know where it found to have to destroy this huge part of memory. My test array contains only 10 elements, that's 120 bytes. Not 722576 if I have understand correctly the trace from the HEAP. Thanks, Bruno

    C / C++ / MFC data-structures testing tools performance help

  • Safearray of UDT
    K Krouer

    The source code of my function: (my comment are in french, don't take care of them) STDMETHODIMP CScoreDesc::get_Notes(SAFEARRAY **pVal) { // Remplis une structure d'information pour pouvoir créer le tableau IRecordInfo* pRecordInfo = NULL; HRESULT hr = GetRecordInfoFromGuids(LIBID_MUSICSEARCHSYSTEM, 1, 0, GetUserDefaultLCID(), IID_NodeDesc, &pRecordInfo); // Détruit le tableau si il existait déjà if (*pVal != NULL) { SafeArrayDestroy(*pVal); *pVal = NULL; } // Crée un tableau pour le transport *pVal = SafeArrayCreateVectorEx(VT_RECORD, 0, m_NumberOfNote, pRecordInfo); pRecordInfo->Release(); if (*pVal == NULL) { hr = Error(_T("Cannot create the Notes decription array")); return hr; } // Rempli le tableau avec le contenu du tableau interne NoteDesc* pNoteArray; hr = SafeArrayAccessData(*pVal, (void**) &pNoteArray); if FAILED(hr) return hr; memcpy(pNoteArray, m_Notes, sizeof(NoteDesc)*m_NumberOfNote); SafeArrayUnaccessData(*pVal); return S_OK; } The IID_NoteDesc is defined at the top of this cpp file. I have try to follow an article I found on this site write by Ioannis Stamatopoulos. Thanks, Bruno

    C / C++ / MFC data-structures testing tools performance help

  • Safearray of UDT
    K Krouer

    I have an automation interface which own a UDT array. The UDT is define as struct NoteDesc { float base; float pitch; float medium; }; In my interface, I have set the get and put properties. put works really great but after I return from get, I have memory crash in the kernel. Here my interface def: [ object, uuid(60C22F90-D3BB-4BA0-ABCC-837E4CA2AEF2), dual, helpstring("IScoreDesc Interface"), pointer_default(unique) ] interface IScoreDesc : IDispatch { [propget, id(1)] HRESULT NumberOfNote([out, retval] long *pVal); [propput, id(1)] HRESULT NumberOfNote([in] long newVal); [propget, id(2)] HRESULT Notes([out, retval] SAFEARRAY(NoteDesc) *pVal); [propput, id(2)] HRESULT Notes([in] SAFEARRAY(NoteDesc) newVal); }; and the class compil well, the call to get is effective. The problem occur when I return of the function get define like that in my h file: STDMETHOD(get_Notes)(SAFEARRAY* *pVal); Do you have any idea?

    C / C++ / MFC data-structures testing tools performance help

  • Stack Overflow Problem
    K Krouer

    Use the heap instead of the stack. Did you have a fonction using a array define on the stack like: void myfunction(tatata) { DWORD data[1024]; // 1024*4 bytes allocated on the stack DWORD *pdata = new DWORD[1024]; // 1024*4 bytes allocated on the heap .... } Does that help?

    C / C++ / MFC help data-structures tutorial question

  • Stupid question answered thousand times
    K Krouer

    I'm an experimented developper (I believe I am) but I'm a bit lost. I want to create a Internet Explorer PlugIn but when I open the new project dialog, I don't know what to choose. It's very embarrasing :confused: . FYI, I want to put some buttons and a listbox. How can I force the user to install it when he opens the page? Can I create a Dialog application with automation server? Does that work?

    C / C++ / MFC question sysadmin testing tools

  • 'Pushing' a thread...
    K Krouer

    You can increase the thread priority SetThreadPriority in MSDN

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

  • how to Visual c++ program in another computer that haven't visual c++?
    K Krouer

    When you compile a project, you get an exe or a dll or a lib file. Exe file can run on every windows platform, that's the application extension. Dll file can be run also if you install a application using it. Lib file must be link into an exe or a dll before usage.

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

  • Templates and Unresolved Externals
    K Krouer

    Did you mean that it's not possible to declare the class in a h file and the implementation in a cpp file? I have the same trouble as I convert my list which use void* to use template. But I don't move the code from cpp to h and when I link the library, it's ok. But when I link the application , I get link error. Does it exist another way to move the implementation from cpp to h for solving this kind of problem? Bruno

    C / C++ / MFC help wpf

  • Do I have to use ATL ??
    K Krouer

    Michael P Butler wrote: If you want to write a COM object in C++, then ATL makes life a lot easier. What other options have you considered? I have considered to do all the stuff my self because I hate to use the MFC and think that ATL is kind of MFC related and it's only for graphical COM. As I don't know if I'm right or not, I ask you if it is. From what I understand from your post, I'm thinking that I was totally wrong. Bruno

    COM c++ database com sysadmin question

  • Do I have to use ATL ??
    K Krouer

    Hello all, I'm new here and newbie in COM. I have to create a COM server. In this COM server, I exposed many interfaces to manage a specific database. I want my COM server to be used from a C++ client, VB client and ASP client. My interfaces do only search, comparison and file reading. Do I need to use the ATL? What are the benefit of using the ATL in this case? Thanks in advance, Regards, Bruno

    COM c++ database com sysadmin question
  • Login

  • Don't have an account? Register

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