Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MilesAhed

    Auto reformat

    I seem to remember wanting to do the same thing when I came from using VC++ 6. The approach to take with C# is that the editor is "alive" and it formats and detects syntax errors in real time. There should be settings for how you want the code formatted in the options someplace. I just use...
  2. MilesAhed

    .net 2.0 window form project in C# express gives errors

    Thanks Jason. Got to delete if from both Form1.cs and Program.cs. Too flustered to think of that before. :)
  3. MilesAhed

    .net 2.0 window form project in C# express gives errors

    I just installed the VS2008 C# express with SP1 hoping it would help. Same problem as C# express without the SP1. If I do new project and select a Windows Form Application, the IDE targets .NET 3.5. If I go into the properties and change it to target either 2.0 or 3.0 I get 4 warnings about...
  4. MilesAhed

    findfirst - findnext

    It's been my experience that often even if you check the attribute when scanning folders with "*.*" it's just about impossible to do stuff like add only folders to a list. I wasted about 6 hours trying to do it in Delphi 5 one day. I suspect FindFirst/FindNext is largely broken. Either that...
  5. MilesAhed

    How catch delphi event from tlb (c#)

    If at all possible I would suggest configuring your COM dll or ocx as an ActiveX Control. If what you really want is a library or component often you can still use an ActiveX Control but just mark it as INVISIBLEATRUNTIME. Usually you can load the .ocx into a toolbox so that you can even drop...
  6. MilesAhed

    WM_SYSCOMMAND works from WinControl but not ActiveX

    Guess ocx is like dll. Application.Handle is 0. I tried messing around with IOleInPlaceSite and then said to hell with it!! I cheated and coded another method and just passed in the handle. If calling through the ActiveX you have to use the new method if you want the main form in the first...
  7. MilesAhed

    WM_SYSCOMMAND works from WinControl but not ActiveX

    I'm a bit baffled. I wrote a "single instance" TWinControl in which the secondary instance of a program passes info to the first instance(such as command tail etc.) and also sends a message to restore the first program instance's main form. The restore code is: SendMessage(MainHandle...
  8. MilesAhed

    Learn 'Object Pascal' and 'Date and Time' functions better

    Also I think if you are ever tempted to venture into the cold dark waters of COM programming in Windows, Delphi 5 is great. By default it creates dual interface COM objects and if you use it for ActiveX the controls work in everything I've tried. If you don't put a design-time license on the...
  9. MilesAhed

    Do Win32 coponents work with Dot Not apps?

    smitty654 if you want more particulars please use the contact page at the site. I don't want to be accused of spamming so that's all I'll say about it here.
  10. MilesAhed

    Do Win32 coponents work with Dot Not apps?

    The operative work is Control, not Component. A component doesn't have a handle. Delphi 5 lets you convert a VCL Control into an ActiveX Control. There's a wizard for doing it in the IDE. There's too many 100s of web pages how to use ActiveX controls for me to rehash it. Look in the online...
  11. MilesAhed

    Do Win32 coponents work with Dot Not apps?

    Almost everything Windows knows how to handle ActiveX. So the trick I use is to create a Delphi control and convert it into an "invisible" ActiveX Control. Then you can use it in .NET. When I say "invisible" ActiveX Control what I mean is, once it's installed in the toolbox or toolbar, you can...
  12. MilesAhed

    only one instance of application?

    CADTenchy, I'm glad I read through this thread again because I fixed up one of my apps to restore if minimized in the situation. :) In a lot of cases, what you want to do if somebody launches a 2nd instance of your app, is to transfer the command tail to the 1st instance, then let the 2nd...
  13. MilesAhed

    creating help files

    Depends on your needs and your budget. If the help isn't that many pages a free solution that's portable is to create html pages and use an index creator that creates an index.html file with links to all the pages. Suitable for web based help and can be used anywhere html can be read. Also you...
  14. MilesAhed

    only one instance of application?

    If I could chime in with one suggestion. Creating a semaphore is the way to go. But often programmers use the complete path of the app or a name they made up as the "unique" name for the semaphore. That's where you'll run into problems such as an app will start from a different folder. What...

Part and Inventory Search

Back
Top