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
A

Al_Pennyworth

@Al_Pennyworth
About
Posts
44
Topics
28
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • COM dll that uses Windows7 libraries on XP
    A Al_Pennyworth

    Ah, loadlibrary, it never even occurred to me. I have used it for DLLs but I have never tried it for libraries. I will give that a try.

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

  • COM dll that uses Windows7 libraries on XP
    A Al_Pennyworth

    I am at a loss and I am hoping someone can lead me down the right path. I have a COM dll that is written in C++. If a user is on Windows7 (or higher), the user will have the option of invoking this new functionality. Otherwise, it will not be available. The problem is that this new functionality uses specific libraries that are only available with Windows7. I didn't think it was a problem until I went to register the DLL on a XP box, where the registration fails. I am certain it is because of these libraries (which are in the project settings). Is there any way to make the DLLS conditional? I have been looking for some different methods but I haven't located anything.

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

  • Transfering file from web service to c++ via named pipes
    A Al_Pennyworth

    I wish more than anything that I could implement the permission change. Unfortunately, the web service will be a corporate webservice applied in different locations and I have been mandated that there are to be no permissions in writing to the drive.

    ASP.NET csharp question c++ asp-net data-structures

  • Transfering file from web service to c++ via named pipes
    A Al_Pennyworth

    I have an application that is written in c++ and I have an asp.net webservice (c# behind) that has two methods. One of the methods is a file upload, where the goal is to pass a file via the web service to the application. I have found various examples on how to do file transfers but my webservice will not have write permission to the machine. So I need to take the byte[] that is essentially the file, serialize it, and send it to my application. I have the majority of the code but I am lost on two aspects: 1) I not sure how to take the byte[] and serialize it. 2) I am not sure what I would need to do in my C++ app to accept the serialized XML with the byte array, meaning how do I decode the byte array. Any suggestions?

    ASP.NET csharp question c++ asp-net data-structures

  • [Message Deleted]
    A Al_Pennyworth

    [Message Deleted]

    IT & Infrastructure

  • Has anyone seen a tag like this?
    A Al_Pennyworth

    Hey guys, I am responsible for converting a project from ASP/JSP to ASP.NET. I was looking through the code and I discovered the following line <%=[Name]%> And I cannot find any reference to what such a tag is used for. I am not fluent in web development but I cannot find any documentation relating to <%=[X]%> anywhere. I realize this messageboard is for ASP.NET but I wasn't sure where else to ask this question. Any ideas what this tag will be do? What it is used for?

    ASP.NET question csharp java asp-net

  • WM_KEYDOWN on Non-MFC Dialog
    A Al_Pennyworth

    Ah, very true, an obvious point that I have overlooked in this case. I would bet that you are correct, the message is going to one of the controls and not the dialog window.

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

  • WM_KEYDOWN on Non-MFC Dialog
    A Al_Pennyworth

    I appreciate the suggestions. When I create the window programmatically, the WM_KEYDOWN works like a charm but since this is a dialog box, it doesn't appear to work the same way. As a test, I implemented a WM_KEYDOWN in the dlgProc and it was never captured. I am thinking there is something special that needs to be done to capture the keystroke for a non-mfc dialog box, outside of the standard implementation of the WM_KEYDOWN message.

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

  • WM_KEYDOWN on Non-MFC Dialog
    A Al_Pennyworth

    I am trying to find a means for capturing the wm_keydown on a dialog box developed using C++ so that means no MFC, no CDialog, etc. It is the old-fashioned capture of the WM_INITDIALOG, WM_COMMAND, etc. I need to capture a keystroke, determine if it is a specific key, and then perform specific processing. All the information I have been able to find deals with the WM_KEYDOWN on MFC dialog boxes, I haven't been able to find anything in regard to how to handle the messaging if it is a Non-MFC dialog box. Any ideas?

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

  • Screensaver settings
    A Al_Pennyworth

    Hi All, I was hoping someone might be able to lead me to some information regarding the screensaver settings. I have been tasked with implementing some functionality to programmatically set the Screensaver timeout period as well as ensure the "On resume, password protect" option under the Desktop->Properties. I found what I think is a simple way to set the timeout period, utilizing the SystemParametersInfo call. It seems straight-forward, just make the following call: SystemParametersInfo(SPI_SETSCREENSAVETIMEOUT, 30*60, NULL, SPIF_SENDWININICHANGE); Now the problem - I need to be able to uncheck the "On resume..." option, which I cannot seem to find a way to do.

    C / C++ / MFC help career

  • Apply header programmatically
    A Al_Pennyworth

    After some digging, I did decide to write my own application in C# that will take a header file and apply it to the top of every source code file.

    C / C++ / MFC c++ question

  • Apply header programmatically
    A Al_Pennyworth

    We have recently been tasked with modifying all of our .cpp, .h, and .c files to include a specialized header at the top of the files. Is anyone familiar with any application that apply this header programmatically and save us a lot of manual work?

    C / C++ / MFC c++ question

  • WMA question
    A Al_Pennyworth

    I want to thank everyone for the replies, works like a charm now!

    C / C++ / MFC question help

  • WMA question
    A Al_Pennyworth

    I have been offline for a bit so I wasn't able to answer any questions. The strValue that is being used is CComBSTR so it is not a CString. Where I am seeing the awkward values is in WMP, WinAmp, other media players, and in Explorer. It is displaying the box character for the length of the title.

    C / C++ / MFC question help

  • WMA question
    A Al_Pennyworth

    I am having some problems with the editing of wma tags. I have a program that I created that will convert files from one format to another. I have implemented the WMA functionality using the WMF sdk and it is working well. But one problem that I have is when I try to use IWMHeaderInfo3 to add the title to the wma header (similar to ID3 tagging in MP3 files), I have found the title shows strange characters instead of the actual title. I am performing the necessary functions: open, QueryInterface, AddAttribute (and I tried SetAttribute), BeginWriting, and EndWriting. Per the MSDN documentation, I am doing everything in the correct manner. The conversion works but the actual tagging does not. Here is the actual AddAttribute call: pHdr->AddAttribute(0, L"Title", &wDummy, WMT_TYPE_STRING,0, (LPBYTE)&strValue, sizeof(WCHAR) * (strValue.Length() + 1)); Any ideas?

    C / C++ / MFC question help

  • WaveInOpen Error
    A Al_Pennyworth

    Hi all, I have been working on an application that records audio off of a soundcard. I use the winnm.dll to give my application this functionality. The problem I am encountering is when I call WaveInOpen, it is giving me an error 4, meaning MMSYSERR_ALLOCATED. I cannot find any rhyme or reason why I am receiving this error message. I am not doing any TAPI or modem functionality, just using functionality that I discovered on the internet for recording of sound from the soundcard. The WaveInOpen call is a standard call. One rather funky situation that I have encountered is on the lower end soundcards, I am not receiving this error. On higher-end cards ($300+), I am receiving this error. I am running XP, written in C# with VS2003. Any suggestions?

    C# help csharp question

  • IE7 and Creating Windows
    A Al_Pennyworth

    Hey all, I have a strange question to ask. I have an app that performs some functions when a user is logged in or logged out. The functions are performed in separate threads and a dummy window is created so it can be used as the parent for windows that are popped up during this functionality. Here is my problem: after I updated one of my machines to IE7, this functionality will only work if I am logged in and I run it manually. In debugging, the call to SetWindowPos never returned, even though the values were good. Other times, I try to circumvent the code and it fails elsewhere. I am using CreateWindow to create the dummy window and it contains a good window handle. Any ideas what might be causing this problem? Any thoughts on what I can look at? I am completely stumped, my application doesn't even use anything from IE7 but after the install (and eventual uninstall) it still has a hangup.

    C / C++ / MFC question help discussion

  • CoCreateGuid
    A Al_Pennyworth

    I am calling CoCreateGuid to get the guid but now I need to take the guid and copy it into a string. I have tried several different ways but nothing is working. So far my code looks like GUID guidID; if( S_OK == CoCreateGuid(&guidID) ) { } How can I take guidID and copy it into a char string?

    C / C++ / MFC question

  • iTunes and Podcasting
    A Al_Pennyworth

    Hey all, this post is going to sound a little strange, I hope I can explain things well enough. I am working on an application that uses the RSS 2.0 Framework (here on CodeProject) but I need to include the iTunes tags in the RSS file. I thought this would be simple enough but I am having problems with the serializing of the XML file. The iTunes tags are in the format but when the file is imported and serialized, the tags become , where 0x003A seems to be the hex representation of a colon character. Any ideas on things I can do to get around this?

    C# xml question

  • Menu Item capture
    A Al_Pennyworth

    That is kind of how I am presently implemented it. I am reading through the directory, for each value, I am assigning a MenuItemInfo, then doing a SetMenuItemInfo, followed by the InsertMenuItem. I am doing this since I need to be able to retrieve the appropriate filename. I am using BASE_ID_VALUE+nIndex, where nIndex starts at 0 and I keep adding 1 to it. I have attempted to put code in the WM_COMMAND but I can never seem to capture the command to the menu. If I change the code to use AppendMenu, it seems I can capture the message in the WM_COMMAND but I am not sure how to get the filename associated with the menu item clicked. Any ideas on how I can capture the WM_COMMAND message after the user has clicked on one of the filenames?

    C / C++ / MFC question help
  • Login

  • Don't have an account? Register

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