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
J

Jose M Castellanos

@Jose M Castellanos
About
Posts
16
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Successfully built project doesn't show app window [modified]
    J Jose M Castellanos

    Yes, I had activated unmanaged code debugging, so it must be due to a something different. The problem apperars and disappears without changing any of the project settings.

    Visual Studio csharp c++ visual-studio winforms debugging

  • Migration from VC++ 6 to Visual studio 2005
    J Jose M Castellanos

    Hello, You can take a look to http://support.microsoft.com/default.aspx?scid=KB;EN-US;309801 There you can find some instructions for using CStrings. There is a change on the CString definition, so you have to place someting like this on your stdafx.h file: #if defined(_AFXDLL) && (_MFC_VER >= 0x0700) #pragma message ("Enablig CString from .net") #include template class __declspec(dllimport) CStringT > >; template class __declspec(dllimport) CSimpleStringT; #endif I hope this helps

    Visual Studio c++ help csharp visual-studio question

  • Successfully built project doesn't show app window [modified]
    J Jose M Castellanos

    Hello: I am building a project like this on VS2003: - C# test app (Windows form) - Managed C++ main DLL (exports several user controls) - Legacy C++ DLLs Some days ago I started to experience a problem when trying to debug it. I started the application for debugging, VS entered debug mode, but I couldn't see my form Window. If I open the task manager, my process is there but with a 0% cpu time. Now it happens more and more frequently. Sometimes I just add a blank space to a file, compile again and my app can be debugged regularly. Of course I have tried to rebuild my app, delete Debug/Release folders of my projects and open/close VS ... Any idea about what can be happening? Answers will be really welcomed. -- modified at 7:12 Thursday 4th January, 2007

    Visual Studio csharp c++ visual-studio winforms debugging

  • Visual Studio 2005 Startup Page: how to remove recent projects?
    J Jose M Castellanos

    I reply myself. Previous method only works while paths are not valid. When renamed to the original name they appear again. Most recent projects (For VS2003) are stored at: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\ProjectMRUList Just delete those unwanted entries and you're done.

    Visual Studio question csharp visual-studio com tools

  • Visual Studio 2005 Startup Page: how to remove recent projects?
    J Jose M Castellanos

    I'm not sure it it will work on VS2005, but I tried it with VS2003. Make those projects paths invalid (renaming a folder name for instance). Then open VS, as the project files are not avaliable, they dissappear from the list. Close VS, then change back folder name. It should work, if not let me know.

    Visual Studio question csharp visual-studio com tools

  • Unmanaged pointer in managed collection
    J Jose M Castellanos

    Hello: I am developping a MC++ dll that reuses tons of code that was made in unmanaged C++. What I am trying to do now is to store unmanaged objects in a managed collection. Let's suppose that I have an unmanaged class (from an unmanaged c++ dll) CMyUnmanaged pUnmanaged* = new CMyUnmanaged; And, on the other hand I have a .net collection, a hashlist in this case: System::Collections::Hashlist* hl = new System::Collections::Hashlist; What I would like to achive is something like this: hl->Add(pUnmanaged->Name, pUnmanaged); CMyUnmanaged pUnmanaged2* = hi[pUnmanaged->Name]; But as .net collections can only store System::Objects, that is managed objects, I cannot do it the straight way. :confused: How can I convert my unmanaged pointers in order to store them in the hashlist? Is there a better way to do this? Thank you very much!

    Managed C++/CLI question csharp c++

  • COM newbie: LNK2005
    J Jose M Castellanos

    I have solved the problem: I had changed my precompiled headers settings. I must use them in order to make the app works. Sorry guys, no winners this time. Next time you shoud be faster ;). Jose M

    COM help c++ com sysadmin

  • COM newbie: LNK2005
    J Jose M Castellanos

    Hello: I am developping my first COM project :-O, that in fact is an attempt to split a previous project into a client and a COM server. Since I'm not very experienced in this field, I'm having linking errors when trying to compile the server: winComServer.cpp Linking... winComServer_i.obj : error LNK2005: _CLSID_CoServer already defined in winComServer.obj winComServer_i.obj : error LNK2005: _LIBID_WINCOMSERVERLib already defined in winComServer.obj winComServer_i.obj : error LNK2005: _IID_ICoServer already defined in winComServer.obj I have been reading several forums about this kind of problems with no possitive results. I'm NOT including "initguid.h" from "stdafx.h", that seems to be a source of problems. Any help would be really welcomed. Jose M -- modified at 9:13 Monday 12th September, 2005

    COM help c++ com sysadmin

  • Code completion plugin for Borland C++
    J Jose M Castellanos

    I had been working for several years with Visual C++, when one day a friend of mine introduced me Visual Assist. Since then, I became a fan of it. It helped me to type code in a time saving way. A month ago, I started to work in a new job, where the official compiler is Borland C++ 6. As the computer that I have should be in the Museum of Natural History, Borland's code completion takes a looooong time to find what I want to type. I have tried visual assist with MSVC++6 on that computer and it's as helpful as always, but MSVC++ is not allowed as code editor in this company. So, the million dollar question is: Is there any plugin, addon or similar that can help with code completion in a slow machine? Answers are welcomed. :)

    C / C++ / MFC c++ question delphi help career

  • Checking if a file has been opened by any process and remains open
    J Jose M Castellanos

    Hello: I am developing a library that must automatically detect new files in a certain directory and then process them. If a user creates a file (such a text one) using any program in the directory and he edits and saves the file without closing, no action has to be taken. The action has to wait until we are sure the file edition is complete and file is closed. How can I check wether the file has been opened by any process in the local machine or even remotely? Is it possible to get a notification when the file is closed by the user? I should work out the problem using no MFCs. Any help will be really welcomed. ;P Jose M. Just re-entering programming world after a long break.

    C / C++ / MFC help question

  • Is there a way to batch upload files to the PPC emulator?
    J Jose M Castellanos

    Hello to everyone, I am developping an application that has to read a digital cartography that is divided into a lot of files with several directories and subdirectories. When using the physical device, it's rather easy to upload all them just using drag n' drop on windows explorer. But things are different with the emulator. By the moment, I haven't found a way to make a batch upload. Is there a way to do this? Or there is a compressor that can be used in the emulator to unzip the content of the cartography? Thank you in advance. José M Castellanos.

    Mobile question

  • STL string problem
    J Jose M Castellanos

    Thank you Jonas: You're right, the variable is a local one and it's destroyed. I didn't realize before because these functions are adaptations of a previous one in which the returned variable was a member variable. Thus the m_string.c_str() was not destroyed after exiting. Sometimes, trees don't let you see the forest .... that's what happened this time. My solution finally has been adding a member variable that is the one returned. m_sText.clear(); m_sText.append(s); return m_sText.c_str();

    Mobile c++ help question

  • STL string problem
    J Jose M Castellanos

    Hello to everyone again: I am experiencing a troubling problem with stl strings. I will try to be as much precise as possible. I have this definition, as my DLL must work under WIN32 and WINCE #ifdef _UNICODE #define __tstring std::wstring #else #define __tstring std::string #endif One object (CContainer) has to build an string with different information obtained from a structure. const TCHAR* CContainer::GetCurrentCommandText() { CCommands::LPCOMMAND pCommand = GetCurrentCommand(); __tstring sReturn; sReturn.clear(); if (pCommand) { CCommandToTextConvert* pText; pText= new CCommandToTextConvert(pCommand); sReturn.append(pText->GetSVOrigin()); sReturn.append(pText->GetSVDestination()); } GetSVOrigin and GetSVDestination have a similar code. I'll show GetSVOrigin: const TCHAR* CCommandToTextConvert::GetSVOrigin() const { __tstring s; s.clear(); if (m_pCommand->dLong > 0) { s.append(_T("Origin: ")); s.append(m_pCommand->sOrigin); } //Here the string is correct, someting like "Origin: main street" return s.c_str(); //But the function returns something like "@X#R" (different each time) } The problem, as mentioned in the code is that when returning, the string gets spoilt. If I make s.c_str() before returning, the result is right. As a result, when trying to append the strings returned by the functions, as each one is wrong, the result is wrong^2 I also tried to do const TCHAR* sFoo; sFoo= new TCHAR[200]; sFoo = s.c_str(); return sFoo; But the problem remains the same What on earth can be the problem? Answers will be really welcomed. José M Castellanos. Troubled rookie programmer :wtf:

    Mobile c++ help question

  • Problems displaying icons in a dialog
    J Jose M Castellanos

    Hello again As Joao suggested I have right-clicked on every resource of this project and I have selected English (US) as language for each of them. But the problem remains the same (no icon displayed). When searching for "Language" in my project, I still find sentences like // Spanish (Castilian) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP) #ifdef _WIN32 LANGUAGE LANG_SPANISH, SUBLANG_SPANISH #pragma code_page(1252) #endif //_WIN32 and others with LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US Is this the reason for the problem to continue? How can I select a single Language for my project and resources? Will I have problems displaying special characters (eg. ñ, á) if I use English as language? Thank you in advance. José M Castellanos survival-programming for beginners :)

    Mobile help question learning

  • Problems displaying icons in a dialog
    J Jose M Castellanos

    I am trying to give my WinCE a better look by including icons on my dialogs. I have used "Create Picture Control" button from the "Controls" tool bar in the resources editor. I choose the apropiate resource and the icon appears there. I also test the dialog with the "test" button and it looks and acts as desired. The problem comes when I run the application on my Pocket PC or the emulator. There is no signal of the icons in any of those devices. I have checked the icon's properties and they seem to be correct (visible and so on). Have you experienced the same problems? Is there any solution? Answers and advice are welcome :)

    Mobile help question learning

  • Saving all the content of PPC2002 emulator's memory
    J Jose M Castellanos

    I am currently working with MS embedded Visual c++ 3.0 and using its Pocket pc 2002 emulator for debugging. The matter is that I have to download many files to the emulator (one by one) for running my application (not only the program and dll files that are automatically downloaded). After shuting down the emulator or rebooting my desktop computer, the emulator's memory is lost, so I have to repeat the process. I was wondering if there's any option or tool that make possible to backup the emulator's memory state and reload it when neccesary. Thank you!

    Mobile c++ hardware performance
  • Login

  • Don't have an account? Register

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