Doogal's Q&A profile
Visual Basic File Attributes
Hi. Im writing a program that is searches all the files in the Hard Drive. All files are listed in a listbox. But i DON'T want to list the system files. I tried to do : If File.Attributes = FileAttributes.System Then..... but it didn't work! And the reason is that for example the file "A" is a system file but it is also hidden! If it weren't hidden it would work! To be specific: FileAttributes.System = 4 and FileAttributes.Hidden = 2 That's make us 6. The program won't list files that it's attributes = 4. That goes for any other combination. Is there a way to NOT list the file if it is a system file but is is hidden, or compressed etc Or the only way would be something like this If File.Attributes = FileAttributes.System AND Fi ...Show All
Internet Explorer Development IE7 and desktop icons
I just installed Internet Explorer 7 today, which I guess is a.k.a. Windows Live . All of my fancy customized shortcuts on the desktop disappeared and each got replaced by the same generic windows icon. Right-clicking & changing the icons in properties no longer works. Also, when I create an internet shortcut while browsing, that creates a shortcut with that same generic icon (not even an explorer logo). Now my desktop is just one forest of identical icons. Anyone know how I can fix this I've wasted all day without success. The issue is not the favicon. In my case it is for a shortcut to a webpage that has been placed on the desktop. I have several web based applications that I had c ...Show All
Visual Basic If I want to upgrade my program of VB6.0 to the program have net application, is it the VB.net is my only choice?
Please help to give some advise, My program is developed by using VB6.0, and now I need to upgrade the program that can support the online application or online transaction. So is it the VB.Net / VB 2005 are the only and the best choice Because some of the people are mentioned that the C#'s performance speed and stable will better then the VB, it is true if I am using the VB.Net to develop, what is the strong point of this new version of VB By far the best reason in my opinion for you to use VB.NET is that your already familiar with VB. Although it is still a different language it's easier to pick up another version of basic than to shift to C As far as your speed concerns, you were told this by a C programmer no doubt ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quadtree project
I have started a Quadtree project. It can be downloaded at http://www.codeplex.com/quadtreeload I would be interested in comments on the direction I am taking on the Quadtree DrawableGameComponent. I have included a test program called JoshGameXNA. But, open the QuadtreeComponentLib solution and just set JoshGameXNA project as the startup project. Excuse my C#, but I'm new to it. Any construction comments are welcome. It's seems you may have to click on "more releases" to get to the "Special Build 0.1.1" project. Not sure why..... That is extremely cool! thanks for sharing the code, I have a book just for terrain, ROAM and quadtrees, this gives me a good example of a c# implementation. Your C# looks ok, although it ...Show All
Visual Studio Express Editions Attempted to read or write protected memory.
Hi all! I'm trying to use a .lib file (NIDAQmx.lib) under C#, so that I created a .dll (nidaqdll.dll) standing for it. Here is an example function in the dll that I'm trying to call from C#: NIDAQDLL_API int32 __stdcall fnDAQmxCreateTask (const char taskName[], TaskHandle *taskHandle) { return DAQmxCreateTask (taskName,taskHandle); } And way of calling thi function: using TaskHandle = System. UInt32 ; (...) [ DllImport ( "Nidaqdll.dll" , CallingConvention = CallingConvention .StdCall)] public static extern unsafe Int32 fnDAQmxCreateTask( char [] taskName, TaskHandle * taskHandle); private TaskHandle AItaskHandle; (...) unsafe { fixed ( TaskHandle * thp = &AItaskHandle) fnDAQmxCreateTask( &q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Jostick/gampad input
Is there a way to get Xna to recognise any gamepad/joysticks that are not Xbox 360 pads The documentation seems to imply that you can't. I am developing a space sim for windows only. ...Show All
Visual Studio Express Editions installation failure of VB 2005 Express
AppName: setup.exe AppVer: 8.0.50727.42 ModName: vsscenario.dll ModVer: 8.0.50727.42 Offset: 0003a490 I have downloaded the .iso version of Visual Basic 2005 Express edition as mentioned in the manual installation instructions and after extracting the .iso image using isobuster, I tried to install the same by double-clicking the setup.exe file but after sometime it gave me the above mentioned error report and closed down. I have also tried installing the windows installer version 3.1. but to no success. [09/11/06,07:54:14] Setup.exe: [09/11/06,07:54:14] Setup.exe: ========== Logging started ========== [09/11/06,07:54:14] Setup.exe: ===================================== [09/11/06,07:54:14] Setup.exe: GetGlobal ...Show All
Visual Studio Team System Using Team Foundation Server with Adobe DreamWeaver
Can someone please let me know if it is possible to use Team Foundation Server with the Adobe Dreamweaver IDE I know there are plugins for Eclipse. I was wondering if there were any for this product. Thanks in advance. Hi Michal Yes I belive it does there is an option for Visual Source Safe when you setup a remote site. I do not see one for Team Foundation server. I am a little confused on the MSSCCI provider. Any help or references would be great. - Aaron ...Show All
Visual C++ error LNK2001
Hi, (I saw the post on same subject but it seems to be a little different. so I'll use some word from that post!) There is a project earlier written in VC++ 6.0. I opened the same project in VS. NET 2005 and I am trying to compile. The code compiles properly (with couple of warnings) but while linking I am getting unresolved external symbol errors like this: The linker seems to have problem with seeing .obj from files in program (which are in the debug directory). It doesn't seem that the /Zl switch or the /NODEFAULTLIB are on. 1>Linking... 1>Utm.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zone.obj : error LNK2001: unresolved external symbol _RTC_Shutdown 1>Zones.obj ...Show All
Visual Studio Team System Alphabetically ordered allowed values
Hi When specifying a list of allowed values on a field, these are sorted alphabetically when shown in Visual Studio. Is there a solution to order the list different Regards, Thomas Ardal AFAIK. Not natively. I feel your pain. One option is perhaps now under SP1 is you could create your own control and thus order as you desired the trick would be what to use as the order by indicator. I'm sure in the future we will see an order by attribute in the allowedvalues and/or other tags. It would indeed be a very nice to have. ...Show All
Internet Explorer Development reproducible Access Violation closing x86 version of IE7 on XP Pro x64
There is a reproducible 0xC0000005 Access Violation in IE7. Simply launch the x86 (32-bit) version of IE7 on Windows XP Pro x64 Edition, then close it by clicking the X in the upper right corner to induce the crash. This problem doesn't occur with the x64 version of IE7, or the x86 (32-bit) version of IE7 when run on x86 (32-bit) versions of Windows XP. This type of problem is almost exclusively caused by buggy plugins. Try starting IE without add-ons ( http://www.enhanceie.com/ie/troubleshoot.asp ) ...Show All
Visual Basic Handles clause requires a WithEvents variable defined in the containing type or one of its base types error
How do I do this raise an event and pass an argument in a control to be handled on the Mainform which references the control The compiler is now complaining when the mainform tries to handle the event "Handles clause requires a WithEvents variable defined in the containing type or one of its base types" Thank you. -greg ********************** User Control.vb ****************** Friend WithEvents FileCombo As System.Windows.Forms.ComboBox Public Class control Inherits System.Windows.Forms.UserControl Public Event Event_Pass_Value_To_MainForm (ByVal sender As Object, ByVal e As EventArgs) Private Sub FileCombo_SelectedIndexChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Xbox 360 Official Dev Kit vs. "the XNA thing"
Here goes, The official dev kits intergrate within Visual Studio and compile on PC and send the executable to the machine and launch it via remote debugging. This also allows for breakpoints, steping thru code, etc. Will this new XNA subscription and Game Studio Express be similar to this idea I'm dreading things like relying on Windows support and burning it to a CD to play it on the 360. (For example) Well, I run a gamedevelopment company and I can say that I know a few things about making games. However after I have read the FAQ (ALL OF IT) I still do not know how I can test my XNA games on my XBOX360. If anyone can clearly explain me the process of getting the code and executables from my PC on my ...Show All
Visual C++ Dll function library returning a string to VBA
Hi, I have developed a dll function library in C++ which returns functions of type 'double' successfully to VBA using lines: extern "C" __declspec(dllexport) double __stdcall MyFunction(double MyArg1,...) and a .def file in C++ and calling it from VBA with: Public Declare Function MyFunction Lib "P:\MyDLL.dll" (ByVal MyArg1 As Double, ...) As Double My question is how can I code a function to return a string to VBA I've tried using types char, std::string, __wchar_t etc but all have produced various errors. What coding should I use Basically, I want to protect my 'intellectual' property. Once the dll gets circulated round at work, I want to be able to prove that it was mine, so want an About(v ...Show All
Visual Basic Person's Age
Hello, 1. The Form has one TextBox and one Label. No Buttons. How can the user put BirthDate data into the Form's TextBox1 field to be processed by the code 2. While the code works, is it right Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Dim BirthDate As DateTime = #6/23/2005# Dim age As Integer age = (DateTime.Now.Year - BirthDate.Year) + ((DateTime.Now.Month + DateTime.Now.Day / 100) < (BirthDate.Month + BirthDate.Day / 100)) Label1.Text = age If age = 0 Then Label1.Text = "<1" Else If age < 0 Then Label1.Text = "X" End If End If End Sub ...Show All
