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
P

prcarp

@prcarp
About
Posts
66
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Missing HTML in codeproject pages?
    P prcarp

    Hi, I noticed that the html code to download files (or see images) seems to missing for some CodeProject articles. Is something broken or am I missing something? Here is one of the articles: Round Buttons[^] Albeit it is old but I was digging around for some techniques on how to build a round button in MFC. Any thoughts?

    Site Bugs / Suggestions c++ html com tutorial question

  • GPL vs LGPL..... your thoughts
    P prcarp

    This has been debated in many places but I would like to get some more perspectives from the coders here. My company develops small mesh radios for military and commercial uses. We get many requests for example programs and libraries that run on PCs (Windows and Linux) that communicate with these radios. We have such a library that is quite feature-laden and requires separate purchase. However, I would like to develop a lightweight version that I can freely give customers to use but even though we would not charge for usage, we would still retain the copyright. I looked into GPL v3 and LGPL v3. It looks like I want LGPL because I do not want to prevent companies from using the open-source version of our library into their proprietary (for sale) products. The reason is that their application may contain sensitive information that they do not want to reveal. I would just like to make sure that only our library is open source and that only bug fixes and features added at that level are shared with the community. My dilemma is that wording for GPL v3 removes any liability from us if the library ill-performs. I did not see that wording in the LGPL. Can I add it? Any thoughts or opinions? I will also be soliciting comments from the company lawyer but I am curious what others in the field are doing.

    IT & Infrastructure discussion visual-studio linux help tutorial

  • How do I pass a byte array from VC++ to VB?
    P prcarp

    Thanks! Everyone has been a great help and I have the code working now.

    C / C++ / MFC c++ data-structures question csharp

  • How do I pass a byte array from C++ to VB.NET?
    P prcarp

    Perfect! :-D Thanks for the pointer. -P

    Visual Basic c++ data-structures question csharp

  • How do I pass a byte array from VC++ to VB?
    P prcarp

    First, my apologies for posting this again - it went unanswered in the VB forum so I am trying with a bigger audience here.... I have a VB.NET 2005 application that makes calls to a C/C++ (VC6) DLL and I have that part working fine. The C/C++ DLL makes use of callback functions to let the VB application know of unsolicited events and that works as well (the functions are at least being called). The problem is I don't know the proper parameters to use (either the C++ or VB side) to get a byte array from C++ back to VB. I have tried the following: C++ side: BYTE bArray[] = { 11, 12, 13, 14, 15 }; int len = 5; pfnCallback(bArray, len); VB side: CallbackHandler(ByVal data() as Byte, ByVal len as Integer) This resulted in the data array length of 1 and it only had the first value of the array no matter how big my array was. Then I tried: C++ side: SAFEARRAY *psa; (then properly created psa, and data copied in) pfnCallback(psa); (then properly destroy psa) VB side: CallbackHandler(ByVal data() as Byte) This resulted in the data array length of 1 and it had the first element of C's SAFEARRAY in it (cDim). I could not see my data. Am I barking up the wrong tree? Is what I want to do possible? I tried ByRef and got exception errors as it jumped from native code to managed code. For the short term, I made a string showing the hexadecimal values of the byte array and passed the string from the C/C++ library back up to VB; that works fine for now.... Thanks in advance, Paul

    C / C++ / MFC c++ data-structures question csharp

  • How do I pass a byte array from C++ to VB.NET?
    P prcarp

    I have a VB.NET 2005 application that makes calls to a VC++ (VC6) DLL and I have that part working fine. The C++ DLL makes use of callback functions to let the VB app know of unsolicited events and that works as well (the functions are at least being called). The problem is I don't know the proper parameters to use (either the C++ or VB side) to get a byte array from C++ back to VB. I have tried the following: C++ side: BYTE bArray[] = { 11, 12, 13, 14, 15 }; int len = 5; pfnCallback(bArray, len); VB side: CallbackHandler(ByVal data() as Byte, ByVal len as Integer) This resulted in the data array length of 1 and it only had the first value of the array no matter how big my array was. Then I tried: C++ side: SAFEARRAY *psa; (then properly created psa, and data copied in) pfnCallback(psa); (then properly destroy psa) VB side: CallbackHandler(ByVal data() as Byte) This resulted in the data array length of 1 and it had the first element of C's SAFEARRAY in it (cDim). I could not see my data. Am I barking up the wrong tree? Is what I want to do possible? I tried ByRef and got exception errors as it jumped from native code to managed code. Thanks in advance, Paul

    Visual Basic c++ data-structures question csharp

  • How to remove the 'New' menu item from my PocketPC app?
    P prcarp

    I found an answer and so I am posting the result here in case anyone else wants to do this.... First, this article was a big help: http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.Menu[^] So what I did was remove all instances of the CCommandBar (m_wndCommandBar) from the CMainFrame class that VS2005 automatically put in. In the CMainFrame::OnCreate() method, after the m_wndView.Init(), I added: SHMENUBARINFO mbi; memset(&mbi, 0, sizeof(SHMENUBARINFO)); mbi.cbSize = sizeof(SHMENUBARINFO); mbi.dwFlags = SHCMBF_HMENU; mbi.hwndParent = m_hWnd; mbi.nToolBarId = IDR_MAINFRAME; mbi.hInstRes = theApp.m_hInstance; SHCreateMenuBar(&mbi); This had the added benefit of allowing me to rename the main menu item (popup) as well. I am not sure of all the ramifications (portability, button access, etc.) but it seems to work fine for my PocketPC use.

    Mobile c++ help tutorial question learning

  • How to remove the 'New' menu item from my PocketPC app?
    P prcarp

    I know I am missing a simple setting somewhere but I can't find it. Google was unfortunately no help either. I am developing an MFC app (for now) and it has a menu resource. The menu appears how I want it but when deployed on the PocketPC 2003 (emulator or actual device), the 'New' menu option appears but it is disabled. How do 1) I remove it altogether or 2) take advantage of it? Thanks, Paul

    Mobile c++ help tutorial question learning

  • How do I log on (n/w connection) via a script?
    P prcarp

    answer here[^] (RasDial)

    IT & Infrastructure question c++ com sysadmin tools

  • How do I start a PPP session from a windows command line or app?
    P prcarp

    I found the answer and so I am posting it here for others.... The Windows utility is called RasDial (RasPhone looks like a phonebook front end to RasDial). From the command line, you can call rasdial "connection name" user pw /domain:d to make the connection. I tested it and successfully made a VPN connection to my workplace from home. It also works for my cellular modem card which is what I needed it to do. Looking through the MSDN docs, there appears to be an API with the Platform SDK that might also do it but I haven't tried it.

    IT & Infrastructure question c++ com tools help

  • How do I start a PPP session from a windows command line or app?
    P prcarp

    I am looking for a way to start and stop a PPP connection from a Windows (C++) application. I originally posted a similar question here[^] and was pointed to the Windows NETSH command. At first, that looked like what I needed but upon closer examination, did not fit the bill. :( I have an icon all set up in the networking control panel but I need to establish this connection via another program. That program also needs to disconnect that interface when it is finished. Any help or pointers would be greatly appreciated. Thanks!

    IT & Infrastructure question c++ com tools help

  • Looking for a modem with EDGE/GPRS/GSM and *Voice*
    P prcarp

    It is for a laptop so it can either be PCMCIA or USB and be laptop powered. It would need to come with a WindowXP driver that can emulate a serial COM port. All the modems I've found do not do all the modes or frequencies. If they support EDGE, it seems like they don't support voice (e.g. SAMBA 75) or the other way around (e.g. SAMBA). I saw the Sierra Wireless 775 might do everything but I believe they will be discontinued. It needs to support 850/900/1800/1900 bands. It also needs to have a small jack for audio in/out. I have a T-Mobile SIM card that has both voice and data enabled. Thanks, Paul

    Hardware & Devices com

  • How do I log on (n/w connection) via a script?
    P prcarp

    Thanks Ed! This looks like it may do the trick.

    IT & Infrastructure question c++ com sysadmin tools

  • How do I log on (n/w connection) via a script?
    P prcarp

    I've created a dial-up network connection and I am able to click on the icon, then click Dial, and successfully make a new internet connection. When I am done, I can right-click on the network icon and disconnect it. However, I need to do this from an application without human interaction. I don't know how to start this dialog (minimized) and tell it to dial. Furthermore, I don't know how to disconnect the link when I am finished. The connection is a GPRS modem connection where time/data can be costly. The application (on the laptop) needs to get online, transfer some data, and then hang up, all without user intervention. What is the proper way to do this? As an alternative, I can successfully write to the COM port, (AT+CGDCONT=1,"IP","internet2.voicestream.com" and then AT*99***1#") but then the ISP connection starts spewing PPP data. I don't know what the equivalent to PPPD is on Windows XP or how to transfer the COM port handle to the daemon. Any help or links on the matter would be greatly appreciated. All the searches I've investigated show how to do this with mouse clicks and nothing automated. Thanks, Paul PS: The script can be .BAT or C++/MFC classes (6.0)

    IT & Infrastructure question c++ com sysadmin tools

  • Satelite images (and a question)
    P prcarp

    Actually, I don't know what specific areas I am looking for. The app is used to demonstrate the GPS aspects of some radios and the marketing folks travel all over the US to demonstrate it. It's nice to have some nice looking, local background images as the radio icons move about. The application gets the lat/long from the GPS at runtime and then does an http get to the terraserver-usa.com to get the background .jpg. It's nice and showy and I had to make it somewhat bullet-proof for the marketing folks. So long as they can get an internet connect, they're good. I appreciate that link; there is a lot of other good links on that page.

    The Lounge question com

  • Satelite images (and a question)
    P prcarp

    Thanks! I did look at that, and Google Earth (keyhole), and Nasa Worldwind. They were close but not quite what I was looking for. I am looking for color images with 1 meter/pixel resolution (or better) areas other than major cities. Google Maps did not have that resolution and I had a hard time just getting the .jpg image by itself. I also saw Teleatlas but it appears those folks sell you digital images on a per-order basis. I need something I can query and obtain on-the-fly.

    The Lounge question com

  • Satelite images (and a question)
    P prcarp

    I found this neat site where you can get .jpg satelite images. http://www.terraserver-usa.com/GetImageArea.ashx?t=4&s=10&lon=-77.105144&lat=38.8828&w=200&h=200[^] Where t is the type (1=b/w, 2=topo, 4=color), s=scale (10=1 pixel/meter), lat & lon=decimal degrees, w & h = width and height of image in pixels. Color is not available in all cases. I use this site for some basic background imagery on an application I am developing. Does anyone else know of a better service (free or subscription) that does the same thing? The images on terraserver seem pretty old and I need newer .jpg images. My application has icons that move around the country and so I need a website that can fetch an image (just the image) on demand.

    The Lounge question com

  • Internet Explorer 7
    P prcarp

    I used it for about a week. I had trouble finding (remembering) where the usual buttons were (home, refresh, favorites, etc.) Then after several sites wouldn't render properly, I uninstalled it. The render problems had to do with tables where normal text followed the < strong > type; they looked fine under IE6 and Firefox. IE7 would also complain about site certificates and that got annoying - the sites were legit (our company's exchange server).

    The Lounge beta-testing question

  • am I being little?
    P prcarp

    I hear you. I have had the same thoughts. A couple of years ago, two of my "groups" came together and it turned out to be quite good. Everyone got along - I was the subject of a lot jokes and old, funny stories but it turned out to be a good thing. When I got married, I invited all my groups and the same thing happened. It turns out the groups had more similarities than I thought and perhaps that is why I associate with them. Don't worry about it. If your friends are good, solid people, then everything will be fine.

    The Lounge database question workspace

  • Bah! Anyone else working today?
    P prcarp

    I am just trying to get caught up from this past week. It's almost 5pm now and I am ready to call it "beer-thirty". :)

    The Lounge 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