dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: JTeagle

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    885

    Re: Calling Functions In VB.NET-Built DLL

    Thanks, removing the underscore nailed it. I should have had the brains to try that, lol.

    Thanks very much for your help.
  2. Replies
    4
    Views
    885

    Re: Calling Functions In VB.NET-Built DLL

    Thanks for this. It certainly resolved the compiler issue. I guess I've become lazy by using generated wrapper C++ classes from TLB files.

    The problem now is that hr comes back 'Class not...
  3. Replies
    4
    Views
    885

    Calling Functions In VB.NET-Built DLL

    I've created a tiny VB.NET DLL as follows:



    Imports System.Runtime.InteropServices

    <ClassInterface(ClassInterfaceType.AutoDual)> _
    Public Class MyClass
    Public Function SayHello() As...
  4. Replies
    2
    Views
    5,045

    Re: add int to array from smallest to largest

    A couple of things for you to think about:

    1) You are careful to check to see if the list is full at the beginning of the add() function, but look at what you are doing at the end of that...
  5. DeviceIOControl(), FSCTL_MOVE_FILE & ERROR_INVALID_PARAMETER

    WinXP Pro SP2, Visual Studio 2005 SP1

    I've been experimenting with the defrag API, just to see if I could get it working. I have had no trouble using FSCTL_GET_VOLUME_BITMAP and...
  6. Re: Creating subkeys under HKCU\Software & Permissions

    I understand what you are saying, and no, they did not pre-exist - it was attempting to create them that failed.

    It seems that with .NET, if you use the key name they provide, you can happily set...
  7. Re: Creating subkeys under HKCU\Software & Permissions

    Thanks for the response. This is actually running as a normal application, under XP, 32-bit app on 32-bit XP.

    Further playing around shows that it seems to be a .NET feature related to security....
  8. Re: Application.UserAppDataRegistry & Program Version

    No, I'm not, and it does not; that's the whole point. The only place we can write to the registry using RegistryKey is the place it defines - the version-specific key. If we try and write anywhere...
  9. Re: Application.UserAppDataRegistry & Program Version

    >Look at this another way. How could Microsoft possibly know
    >what settings you are going to reuse as an application developer?

    They don't need to know - our apps know what they do and don't...
  10. Re: Application.UserAppDataRegistry & Program Version

    The versioning itself isn't the issue - it's the fact that settings are stored per version. Chances are, even if you wanted to run two versions side-by-side, I'd say it's 95% certain they would use...
  11. Application.UserAppDataRegistry & Program Version

    (Visual Studio 2005, .NET 2.0)

    While looking for a temporary alternative to storing user settings while my registry create subkey problem gets resolved, I stumbled across the UserAppDataRegistry...
  12. Creating subkeys under HKCU\Software & Permissions

    (Visual Studio 2005, .NET 2.0)

    I can read keys no problem, but if I try and create a subkey under Software, I get an UnauthorizedAccessException ("Cannot write to registry key"). I've tried...
  13. Replies
    2
    Views
    557

    Re: Programming Layout

    I'll be honest, you should probably Google for a basic C++ tutorial to get a good understanding, but I'll try and answer your questions just to get you started.

    1) This isn't really the way to do...
  14. Replies
    5
    Views
    737

    Re: Inheritance Heirarchy Question.

    I believe using "placement new" for your allocations would solve your problem - your CreateSingleCell() method could be passed the place in the memory block you want the object created, and placement...
  15. Replies
    1
    Views
    545

    Re: Adding a lot of data to list control

    Take a look at the SetRedraw() method. This can be used to prevent visual updates until you have finished adding, and then you can set the flag back again.
  16. Thread: char scan

    by JTeagle
    Replies
    3
    Views
    767

    Re: char scan

    The code you have shown won't even compile.

    Anything in single quotes - like this: 'X' - is a char.
    Anything in double quotes - like this: "X" - is a string.

    In C and C++, a string is an array...
  17. Replies
    2
    Views
    841

    Re: Error in Open recordset

    As mentioned above, use a try / catch block for _com_error. In that catch block, add these lines:

    if ( (pCmd->ActiveConnection->Errors->Count) > 0)
    {
    long nCount =...
  18. Replies
    2
    Views
    1,556

    Re: WM_SYSKEYUP not rcvd after Alt

    I can't answer your question directly, but have you considered using GetAsyncKeyState() at the point when the action (mouse click or other keypress) takes place to see if the <Alt> key is down or has...
  19. Replies
    3
    Views
    841

    Re: Stoping thread....

    When you start a thread you pass in a parameter, which can be a pointer. This pointer could point to a common abort flag (bool), or if you need more data to pass to a thread, it could point to a...
  20. Replies
    9
    Views
    967

    Re: Program Run-Time

    EndDialog() will end your program whenever you want.
  21. Replies
    9
    Views
    967

    Re: Program Run-Time

    Yes, I believe you answered my question - you built a standard MFC dialog-based app using AppWizard.

    In this case, your one and only dialogue should automatically be destroyed when the user clicks...
  22. Replies
    5
    Views
    674

    Re: Property sheet problem

    It is possible to create a normal, modeless dialogue and embed the property sheets on them directly. With modeless dialogues instead of (modal) property sheets, you would probably have no problem.
    ...
  23. Replies
    9
    Views
    967

    Re: Program Run-Time

    For us to be able to help you, you need to answer any questions that were asked.

    Please answer:
    - Did you use AppWizard to create your project?
    - Is this the only dialogue in your application,...
  24. Replies
    5
    Views
    674

    Re: Property sheet problem

    Are both of your property sheets modal? It sounds as if you have a modal on top of modal issue. Modal behaviour is implemented by running an internal message loop - thus, when you open a second modal...
  25. Replies
    9
    Views
    967

    Re: Program Run-Time

    Have you used Visual Studio's AppWizard to generate your dialogue application? If you have, then the built-in framework already contains all necessary code to destroy the window when your program...
Results 1 to 25 of 45
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)