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
C

cgreathouse

@cgreathouse
About
Posts
18
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Print current page
    C cgreathouse

    Hello I have a page that displays search results. I'm looking for a way to have those search results printed. However, there are some items (ads, menus, etc) that should not be printed. What I have so far is the results are sent to a new tab (using javascript) with the search results. All of the items that shouldn't be visible have been removed. However, only the text shows up. All the CSS styles and images aren't showing up. Since the results are already being displayed, I'm trying to avoid having the server execute the search again. Another thing to keep in mind, this is an SPA app (i.e. the URL never changes throughout the site). My guess is since the html is getting sent to a new tab, the root URL is not set. So when it comes to a relative path for the images, css and script files, it doesn't know how to build the full path. Does anyone know of a way to get this method to work? I know I can get this to work by having the server execute the search again, but I'm trying to see if there's a client side solution. Thanks!

    JavaScript javascript html css wpf sysadmin

  • CompositeControl with dynamic controls
    C cgreathouse

    I have a class that inherits from CompositeControl that dynamically creates controls at runtime (typically 2-5 DropDownList controls). All of the control creation is happening in CreateChildControls(). When a page using that control first loads everything is correct. However, after the selected index is not being remembered. It doesn't matter what is selected in the DropDownList controls, SeletedItem or SelectedValue is always the first item in the control. I then found some posting that said AutoPostBack needs to be set on the DropDownList Controls and that a check for IsPostBack needed to be put in CreateChildControls(). I did that but when a new item in any of the DropDownList controls was selected, all of the DropDownList controls were empty. I then saw something that said for the ViewState to be preserved, the DropDownList control must first be added (i.e. Controls.Add()) and then load the control. That didn't help either. Has anyone done anything like this before? Any guidance and how to get this thing to work? Thanks!

    ASP.NET question database help tutorial

  • Interesting Request...
    C cgreathouse

    http://www.voodoopc.com[^]

    The Lounge css asp-net graphics question

  • AAA membership
    C cgreathouse

    You could also get AAA Plus. It's a little more but then you can be towed up to 100 miles. I also think that if you run out of gas they'll bring you a couple gallons. They'll also do that if you have the regular AAA but you have to pay for the gas.

    The Lounge com question

  • weird call stack problem w/VC 6...
    C cgreathouse

    I'd check and make sure your dev and test environments are the same. Make sure that all of the dlls, etc that you app depends on are the same version in both environments. Here's a similar case to yours. http://groups.google.com/group/microsoft.public.vstudio.development/browse_thread/thread/4ab576781d9b05b8/14be7f83d8ef39af?lnk=st&q=no+call+stack+displayed&rnum=3#14be7f83d8ef39af[^]

    C / C++ / MFC debugging visual-studio com hardware data-structures

  • Visual Studio 2005 Pro ... is dead today.
    C cgreathouse

    It could be that the Windows Script host has gotten corrupted. It may be worth a try to reinstall it. http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp[^] If that doesn't work try running regmon to help narrow down what's going on.

    The Lounge tools csharp c++ visual-studio com

  • problem with .exp and .lib file generation path.
    C cgreathouse

    So just to be clear here are the settings I'm using to get this to work (for the Release configuration) Configuration Properties->General Output Directory = Release Intermediate Directory = Release Configuration Properties->C/C++ Object File Name = $(IntDir)/ Configuration Properties->Linker->General Output File = $(ProjectDir)OutPut/$(ProjectName).exe Is that what you're using?

    C / C++ / MFC help c++ announcement

  • Custom build command in VS.net 2003. and VC6
    C cgreathouse

    Do you know what the current directory is when the custom build step is executed? I would guess the current directory when executed in VC6 is different than VC2003. One thing you could try is hard-code "..\..\bin\debug\" to the full path and see if that works.

    C / C++ / MFC csharp visual-studio debugging help question

  • problem with .exp and .lib file generation path.
    C cgreathouse

    Here's one way you could do it Open the project properties and go to Configuration Properties->Linker->General. Then set "Output File" to $(ProjectDir)OutPut/$(ProjectName).exe

    C / C++ / MFC help c++ announcement

  • Dumb sign of the Day
    C cgreathouse

    I had that same thought a couple of years ago when we made the switch to DVD. But I soon realized that underneath was a little chip that would cause the alarms to go off if someone tried to walk out the store without paying.

    The Lounge c++ com architecture

  • Fast files
    C cgreathouse

    Bottlenecks are spots in your code where most of the execution time is spent. I would suggest you profile you app and see where most of the time is spent. If you're using VC6 there is a profile that ships with it. It takes some reading to figure out how to use it (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_using_profile.2c_.prep.2c_.and_plist.asp[^]) There's also a way to run from VS but it doesn't always work(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_core_using_profile.2c_.prep.2c_.and_plist.asp[^]) If you're using VS 2002 or 2003 you'll have to get the profiler from compuware. They have a freebie version available (http://www.compuware.com/products/devpartner/profiler/default.asp?cid=3019X36&focus=DevPartner&source=Web+%2D+Evaluation+Request&desc=Download+%2D+%27DevPartner+Profiler+Community+Edition%27&offering=DevPartner&sf=1&p=0[^]) If you're using VS 2005 there is a profile included. Once you see where most of the time is being spent you can then start to think about how to improve the performance.

    C / C++ / MFC c++

  • Fast files
    C cgreathouse

    What APIs are you using for File I/O? Have you done any profiling to see where the bottlenecks are? Since File I/O is extremly slow compared to memory I/O, I don't think you'll see much difference between C++ and assembly. Without knowing more about you app, it's difficult to give any advice. Chris

    C / C++ / MFC c++

  • File synchronisation
    C cgreathouse

    Punch Networks has something similar called the ElectraDrive Sync Engine http://www.punchnetworks.com/retail/sync.jsp[^]

    The Lounge tools help question

  • STL for CE.NET (CE 4.0)?
    C cgreathouse

    Hello I'm currently trying to port a library to CE.NET using eVC 4.0. The problem is we are using a 3rd party library that uses iostreams. There is a verion of STL that comes with eVC 4.0 but it doesn't support iostreams. I tried using STLport without much luck. Has anybody had similar problems? What had to be done to get it to work? Thanks!

    C / C++ / MFC csharp c++ help question

  • not getting messages
    C cgreathouse

    I'm trying to add a context menu to a tray icon that appears when a user right clicks on it. I'm not getting any of the "click" messages in the window that is passed in NOTIFYICONDATA. I did notice one thing. I was using SPY++ to see if the parent window existed (it's a 0,0,0,0 invisible window). I right clicked on the window and then clicked properties. As soon as I did the window started receiving messages like crazy. Does anyone know what's going on and what I need to do to fix it? Here's some code snippets CTrayWindow trayWindow; // CTrayWindow derives publicly from CWnd trayWindow.CreateEx(0, AfxRegisterWndClass(NULL), "Tray Window", WS_POPUP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, 0); ... m_iconData.hWnd = trayWindow.GetSafeHwnd(); // m_iconData is a NOTIFYICONDATA m_iconData.uID = WM_MYMESSAGE; m_iconData.uCallbackMessage = WM_MYMESSAGE; m_iconData.uFlags = NIF_ICON | NIF_MESSAGE; Shell_NotifyIcon(NIM_ADD, &m_iconData); CTrayWindow is instantiated in my CWinApp::InitInstance() Thanks!

    C / C++ / MFC help question

  • Cross platform for the C++ guy (protable C++ or .NET)
    C cgreathouse

    I wanted to get some thoughts on C++ people that build (or are thinking about) cross platform applications. I grew up on Windows but lately been wanted to get into linux. So what would you do if you wanted to build an app that had to run on both windows and linux. Of course you may have to wait for the mono stuff to finish first if you went the .NET route.

    The Lounge csharp c++ linux discussion learning

  • Loading version info
    C cgreathouse

    In the version information for my app there's stuff like CompanyName FileDescription FileVersion InternalName ... SpecialBuild When my app starts I want to see what the value of SpecialBuild is. Can anybody give any guidance? Thanks Chris

    C / C++ / MFC question announcement

  • CSpinButtonCtrl as an In-place control
    C cgreathouse

    I'm currently building a ListView control that is able to be edited in-place. So far I've got an edit control working, but I'm having problems with a spinner control. The first problem is I can't set the focus to the spinner control after I've created it. I tried using the same method (SetFocus()) I used for the edit control but doesn't work. The second problem is I can't trap when the 'Esc' or 'Enter' are pressed. For the edit control I'm using PreTranslateMessage(), but it's not getting called when the spinner is created. Anybody no what's going on? Have an examples I can take a look at? Thanks Chris

    C / C++ / MFC help 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