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
G

GuimaSun

@GuimaSun
About
Posts
84
Topics
34
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DLL appearing only after .EXE execution in temp folder, how does it works ?
    G GuimaSun

    Yes, it has to be something like this. I found something using process explorer, after choosing some menu item, the .exe loads an .msi file (yes, the .msi file is listed as loaded as the dlls are), and inside this .msi the is the x.dll. Now I can use an .msi editor to change the dll inside of it. Thanks Rajesh.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C / C++ / MFC help html com question announcement

  • DLL appearing only after .EXE execution in temp folder, how does it works ?
    G GuimaSun

    Hi, I'm facing a situation that I've never seen before regarding .exe and .dll files. The app a.exe uses a DLL x.dll. The x.dll (not a COM DLL, but a regular one) can't be found in the computer hard drive. After executing a.exe, the x.dll is expanded to the temp folder, to a path like this: C:\DOCUME~1\COMPANY\LOCALS~1\Temp\tmpABT\07333f01-60fa-473c-9581-344d009b639d\x.dll This DLL and path exists only during a.exe execution. In the a.exe directory, there's a .CAB with a lot of DLLs, but x.dll is not inside of it. The problem is that I have x.dll source code and I wanted to change it's version (used by a.exe). Any tip on where does the DLL come from ? Thanks for any help!

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C / C++ / MFC help html com question announcement

  • Question about VARIANT deallocation
    G GuimaSun

    The parameter is defined as [in,out,optional]. And yes, now I understand, as I suspected, I can't reallocate the VT_BYREF | VT_I2 inside my ATL code. The only thing still not 100% clear which confused me is that I can define a VB procedure receiving a byref variant, do the same thing receiving my int, and changing it to String and no leak happens. That was my first test. But the difference is: there's no COM in this scenario, and the pure VB allocation\dellocation mechanisms are not the same. Thanks a lot !

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    COM help question c++ html com

  • Iostream processing\flags question
    G GuimaSun

    Problem solved using the .str() method, I finally could figure out a way to specialize my templates and use the unformated version with strings. Anyway, thanks a lot for your valuable tips.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C / C++ / MFC question html com help

  • Iostream processing\flags question
    G GuimaSun

    I'm using the stringstream and the operator << receiving data from a input string, like this: stringstream ss; ss.clear(); ss.str(""); ss << inputString; ------------- string outputString = ss.str(); The string is big and contains white spaces, etc. Sometimes the "outputString" string reflects the entire inputString, sometimes it's truncated until it reaches a white space...in the same project. Why it happens ? Is there any way\flag to reset any iostream data processing ? Thanks for any help.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C / C++ / MFC question html com help

  • Question about VARIANT deallocation
    G GuimaSun

    Hi The same happens with CoTaskMemAlloc, and using VT_BSTR instead of VT_BSTR | VT_BYREF. Thanks anyway.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    COM help question c++ html com

  • Question about VARIANT deallocation
    G GuimaSun

    I can't change that interface, the real code is far more complicated, basically I need to receive a VARIANT* and change their value, and the new value comes from a c++ string. I'm testing using VB 6. Thanks.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    COM help question c++ html com

  • Question about VARIANT deallocation
    G GuimaSun

    It was my first guess, but I don't think so...each time I receive a call (from the loop) I receive the same integer VT_BYREF | VT_I2 (which is deallocated by VariantClear). It seems that this BSTR is lost between calls, causing the leak (obviously myInt is an integer and can't reflect changes).

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    COM help question c++ html com

  • Question about VARIANT deallocation
    G GuimaSun

    After more than 8 hours trying to fix up a memory leak I need some help :/ I have a ATL COM component, with the following interface: STDMETHODIMP CDCSClient::CallService( VARIANT *p1 ) Inside the method I do the following: VariantClear( p ); VariantInit( p ); p->vt = VT_BSTR | VT_BYREF; BSTR *pBSTR = new BSTR; *pBSTR = SysAllocString( L"abc" ); p->pbstrVal = pBSTR; And my client in VB is like this: For i = 1 To 1000 Dim myInt As Integer myInt = 3 ret = client.CallService(myInt) Next As far as I know the COM engine is creating a VARIANT from my integer (which is received as VT_BYREF | VT_I2), and I change it to VT_BSTR. The VB loop causes a huge memory leak. Am I doing something wrong ? How the COM engine handles the new VARIANT/BSTR deallocation ? Thanks for any help.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    COM help question c++ html com

  • Immigration to Canada
    G GuimaSun

    The same thing happens with natives in their own country, a lot of engineers, doctors, and etc are sub employed. Most of them didn't have a opportunity to enter the market or couldn't study in a good university. This is what happens in Brazil. As I'm trying to immigrate by the end of this year (to Canada), I hope I'm right :~

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    The Lounge com

  • Even targeting 3.5, metadata version v2.0.50727 ?
    G GuimaSun

    This is the answer I thought I'd get, but I found many articles refering to this as the required framework version. So, how can I get the required framework from the assembly file ? Thanks a lot.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    .NET (Core and Framework) question csharp html dotnet com

  • Even targeting 3.5, metadata version v2.0.50727 ?
    G GuimaSun

    Just a matter of curiosity and general knowledge..easy question it seems but I didn't find an answer :( My project (I'm using VS2008) targets .net framework 3.5, but after compiling the IDLASM shows: // Metadata version: v2.0.50727 and examining the loaded application, the used DLLs really points to the 2.05 framework...should'nt it target the 3.5 ? Thanks for any help

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    .NET (Core and Framework) question csharp html dotnet com

  • Help with generics [modified]
    G GuimaSun

    It doesn't work: Unable to cast object of type 'System.Int32' to type 'System.Int32[]'.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C# tutorial csharp html com data-structures

  • Help with generics [modified]
    G GuimaSun

    Thanks Thomas, I edit the question and explained it better. My problem is basically to access the "i" value when the function receive single types and arrays too, my problem is to get the value of each element when the type is an array (which I can check using i.GetType().IsArray). Thanks anyway.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C# tutorial csharp html com data-structures

  • Help with generics [modified]
    G GuimaSun

    Hello, I'm trying to access an element from the following function, can you help me ? I've tried a lot of constructions without success. Edit: I`m using VS2008\.NET 3.5 The function below should access the "i" value for single types and arrays at the same time, for single types it`s ok, but for arrays I don`t know how to access array elements. I can check i.GetType().IsArray, but don`t know how to access particular elements. static void function(ref T i) { string s; if ( !i.GetType().IsArray ) s = i.ToString(); // ok else // next line doesn't compile: Cannot apply indexing with [] to an expression of type 'T' int a = i[0]; } Caller code example: int a = 5; function(ref a); int[] arri = { 3, 5, 7 }; function(ref arri); Thanks for any help.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C# tutorial csharp html com data-structures

  • Support to create graph editor ? [modified]
    G GuimaSun

    Hi I need to create a visual graph editor (with drag and drog), something like state diagrams with nodes and arrows, for a specific application. Any advice on any component\code\framework to support it ? Thanks for any help.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    modified on Wednesday, February 18, 2009 3:45 PM

    C# html com data-structures help question

  • MS Certification, I would like to hear your advice
    G GuimaSun

    I just read all the responses and agree 100%, but I suggest you to take the certification, for the following reasons: - in my country (Brazil) the certification don't help too much too, but in some cases (it was said above) some companies may take it into account. In this economic crisis scenario I think it's a good idea to underestimate anything :) - I still have made some exams, and they are good to make me study, without it I think I wouldn't study anymore, but it may be good to me due to my personal characteristcs, sometimes I need a specific target to do something. I hope it helps!

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    The Lounge csharp dotnet winforms cryptography question

  • Issue with SysFreeString...
    G GuimaSun

    After deallocating with sysfreestring, are you providing a new value with sysallocstring ?

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    COM com performance help tutorial question

  • Need to Repair afxwin.h
    G GuimaSun

    You can try this http://www.cppdoc.com/example/mfc/classdoc/MFC/AFXWIN.H.html[^] ...by your own risk :) Sorry I don't have vs2005 installed here to check this version, but I can see it's different from my vs2008 version.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    C / C++ / MFC visual-studio question

  • ASP.NET Developers in Brazil
    G GuimaSun

    Just to give you some number, a senior .NET developer in Brazil usually receives R$50/h, aproximatelly U$25. What Daniel said about labor laws and taxes is really true. I have a friend in L.A. who tried to move his dev team to Brazil and he got crazy with this kind of issues. He gave up. Hard truth.

    GuimaSun www.nexsun.com.br NEXSUN TechZone

    The Lounge csharp asp-net 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