Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. It may be clear English but when I wrote the question I hadn't seen your follow on post and as such didn't know what language, version or mechanism you where using to implement the interface. The functionality you are experiencing is specific to VB 2005. The generally facility itself is refered to as a snippet (these can be found under the install folder for VS and are of a general XML format). These are just an XML file with a .snippet extension and are documented in the IDE although the mechanics of how they integrate differs between VB and C#.
  2. Not sure what you mean by how are you implementing the interface (i.e. what features / tools of visual studio are you using)?
  3. Also try putting the location elements outside of the system.web element.
  4. just an idea but the bit probably doesn't need the ... tags around it.
  5. Global variables and asp.net applications are a really difficult mix and you need to be very careful about how you use them. Application variables will remain until the application exits and it's only then that the application_close event will fire. If you wish to remove the class when a user disconnects then the session_end may be a more appropriate place. However you will probably still get the potential for problems with your code due to the use of shared data members. It may be easier to design the class to use instance data rather than shared data and then store it in either the application or session based on the requirements of your app.
  6. You could just SELECT the results back into the dataset after your insert / update / delete has occurred.
  7. Is the mounted volume correct (i.e. if you chkdsk it are there any errors)? Other than that have you tried ghosting the image to a test machine and running the app on a 'real' version rather than the image? Also is there anything different between the images that work and the ones that don't? Other than that I get a feeling a call to tech support may be in order.
  8. If I didn't need to use C++/CLI then C# would be a far easier language to develop in and learn. However in .Net 2 the syntax for C++/CLI does look a lot cleaner and easier to use than the previous versions.
  9. Does the excel file reside on the client or the server? If it is on the server then you will not be able to launch it on the client in this manner. If the file exists on the client I would check that the full_path variable does indeed contain the correct path.
  10. If it is just a vb script you are using then it will not have access to the .Net runtime, you would need to use the features of the scripting runtime itself. For the purposes of file io etc. there Is the FileSystemObject which should do what you need.
  11. In that case the GAC is probably the best location, as well as allowing you to store a single copy of the dll it does also allow better control of versioning and is more efficient in terms of memory use.
  12. IIRC you need to look at the BindingContext of the object, by default they are all using the same one.
  13. System.ServiceProcess.ServiceController[] s = System.ServiceProcess.ServiceController.GetServices("name of computer here"); foreach (System.ServiceProcess.ServiceController sc in s) System.Diagnostics.Debug.WriteLine(sc.ServiceName); should work providing you have the relevant permissions.
  14. Try _ Private Shared Function FindFirstFileW _ (ByVal lpFileName As String, ByRef lpFindFileData As WIN32_FIND_DATA) As Integer End Function for the declaration and you should be able to call it like hSearch = FindFirstFileW(Path & "*", WFD)
  15. Have you tried to create your properties as part of the ClassLibrary project? If not give it a try, The Properties.Settings etc. for a classlibrary is saved to / read from the calling application's config file. It makes it just as simple to use with dlls.
  16. Just out of curiosity is there a reason you don't want to switch to the .Net way of ding things (System.IO etc.)? It would really allow you to simplify the existing code if you dropped the interop stuff.
  17. Is the UserControl part of the same project as the form or is it a differerent project? Also check your config files are correct - it could be failing to load it's configuration at design time and failing... It may be worth wrapping the call to .CreateDatabase in a check and only run when not being called from the designer.
  18. Not entirely sure where the problem lies? Are you getting the error because people are opening the .xls on their local machines or are they accessing the same .xls as the server is trying to download?
  19. Without seeing the code you have typed yourself it is difficult to pinpoint the problem. It sounds like you are not declaring your variables etc. correctly though. I would check the spelling etc. of you variable declarations / uses to make sure they match correctly.
  20. IIRC it does rely on the keys used to encrypt the section being present for the decryption.
  21. You should find visual studio has created a wrapper class for you Properties.Settings.Default. should be all you need.
  22. As far as I am aware there is no way to prevent Outlook from displaying this message, it is designed to stop virii etc. from auto-emailing but it also prevents legitimate uses...
  23. http://anthem-dot-net.sourceforge.net/ is worth a look.
  24. BinarySearch requires the data to be in a sorted order, if the data isn't sorted then the results are meaningless.
  25. Does it work if you do an IndexOf rather than a binary search? Also is the itemArray sorted correctly?
×
×
  • Create New...