Software Development Network Logo
  • Visual J#
  • SQL Server
  • Game Technologies
  • Visual Studio
  • Visual C++
  • Windows Vista
  • Visual Basic
  • VS Team System
  • Visual FoxPro
  • Windows Forms
  • Microsoft ISV
  • Windows Live
  • Visual C#
  • Architecture
  • .NET Development

Software Development Network >> wannabe_2's Q&A profile

wannabe_2

Member List

MarkShep
CTARP2
MarkWilson
AdrianoBrazao
JimIT
imusic
Naga2k2
James F
Octavio
X5-Eric
sirck sirck
Frank Walker
Pradeep
RichardC_UK
jmartin505
James Hicks
Derek.Zhang
Makemagic
Gianni Patrono
KoalaGerch
Only Title

wannabe_2's Q&A profile

  • SQL Server Problem with ODBC access in a thread

    Hi guys, I'm using SQL 2005 Express with an ODBC connection. I've created a thread to fill a listctrl with the data of a table. At the end of the thread there is cicle to check for some lines value in another table. When I try to close RecordSet linked to the second table to ReOpen with another SQL Statement the thread ends. Using SQL Server 7 I've no problem. What's wrong ...or what I'm not doing Thank you in advance Hi Steve, I fixed the for but this isn't the problem because using step by step debugging the crash in in the first execution of Close. I traced the execution of the Clos ...Show All

  • Visual Basic vb.net listbox item count issue

    I use a listBox on VB.NET (VS.NET 2005) and pass the listbox's handle to a C function for item population. Within the C function I use SendMessage() with LB_INSERTSTRING to insert item into the listbox, as in SendMessage((HWND)hWnd, LB_INSERTSTRING, lIndex, (LPARAM) ((LPCSTR) item_to_be_inserted)); After the above call, I can verify the listCount is correct within the C function using LB_GETCOUNT, as in listCount = SendMessage((HWND)hWnd, LB_GETCOUNT, (WPARAM) 0, (LPARAM) ((LPCSTR)0)); The problem is when execution returns to VB.NET, the listCount from VB.NET via listBox.Items.Count() always returnes a value of 0. This s ...Show All

  • Visual C++ compiler generates incorrect code /w all optimizations disabled

    I have encountered, twice now, cases where the VS2005 C++ compiler generates incorrect x86 code. I have a small boyer-moore implementation that I can send to anyone interested that demonstrates one of these cases. Actually, I'll post it as a reply to this.. Simply re-arranging the code (no functional difference) fixes the errata. Below are copies from the Visual Studio debugger, showing the incorrect code.. then a simple adjustment that resulted in generation of correct code. Again, optimizations disabled. The conditonal jump instruction missing below is very essential, as this branch is taken the majority of the time. INCORRECTLY GENERATED ...Show All

  • Visual Studio Express Editions How to use an external script in IDE

    I have many different .vbs scipts that I can click on to do various tasks (such as map network drives, WOL computers, and Remote Shutdown computers). All I want to do is to be able to press a button and it will activate the scipt. What is the code that would call the .vbs file and execute it in the IDE I tried to use "Add Existing Item" and put the script into the Solution Exploerer, but it either didn't put it in the IDE or I don't know how to call it. Thanks You cant run vb script in vb express. If you want to run a script file from your application you can use process.start("YourFile. ...Show All

  • Visual Basic VB6

    Hi It's been a while since I've done any VB programming, and I need to get back in to it for work purposes. I've quite a bit of experience at VB 6 programming and have lots of code and examples that I need to use again. Is the latest VB development package backwards compatible with VB6 I'm sure all of these questions have already been answered so appologies for that. Thanks John VB.Net is NOT backwards compatible with VB6...there will be a small learning curve tranfering over to .NET....the curve is primarily learning the namespaces and classes...with the exception of a few new keywords and a few t ...Show All

  • Windows Forms TabIndexChanged

    Hi! I was trying to handle this event.  This is my code:  *********************************************************  Private Sub myForm_TabIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.TabIndexChanged     Console.WriteLine(tabIndex changed! Here is the value: " & Me.TabIndex)  End Sub  *********************************************************  But it doesn't work.  I'm not&nb ...Show All

  • Visual C# requiring a override method to call the overridden method

      I'm trying to fiqure out how to require a override method to call the method that it overrode.  for example: public class test { public test() { } public virtual void whatever() { // do something here you don't want to be done even though the class gets overridden // I know its not the way it should be done but I inherited this and have to get it to work } } public class test2 : test { public override void whatever() { // do stuff here } } // caller test2 t = new test2(); t.whatever();  // I want to get to the overriden method to the c ...Show All

  • Visual Studio Team System Unable to access Team Foundation Server after Domain Migration

    Hi, Initially, we were able to connect to the Team Foundation Server and access Work Items as well as the Source Code, as 'Contributors', but after we were migrated to a diffferent trusted Domain, we have got the following error, whenever trying to access the Foundation Server: "TF26000: Could not connect to the Team Foundation Server. Check that you have a network connection and that your Team Foundation server is available." Now, we can only access Work Items or the Source Code as 'Administrators'. Can anyone provide a solution Thanks in advance. Ravindra N. Hi Ravindra, ...Show All

  • Windows Forms Object does not match target type

    Hi, I am getting the error below from the designer. This is the full error message being displayed, and it does not contain any information about the specific object, or the line number e.t.c.  How can I find out which object it is that does not match the target type Thanks One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Object does not match target type. Hide      at System.Reflection.RuntimeMethodInfo.CheckConsistency(Object target ...Show All

  • Smart Device Development Detecting a network in C# .NET

    What method is recommended to detect a network (either via cradle/wifi etc). Thanks, Jeff. Readers of this thread might also appreciate knowing about this component. http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/NetworkComponent.asp ...Show All

  • Visual C++ add class - cannot add mfc and atl items

    Hello, the add-class wizard does not allow me to create atl or mfc entries, such as "ATL Simple Object" etc., i.e. the edit fields Name and Location are grayed out and Add does not work. This is even true in a new project, what could be wrong, any ideas thx Alex Hi David, Could you send me a small sample project that exhibits this behavior You can email it to borisj at microsoft dot com. Thanks, ...Show All

  • Microsoft ISV Community Center Forums Closeing shared files

    Hello Yesterday I stack with a problem of opening and writing some information to  file in AD domainm which was open by one user. I noticed that when someone open a file, then I can not do anything with it untill the time when he will close the file. My question is : Is it possible to close such session to the file for this user thru the vb.net or cscript code My program need to get full acceces to some files and I need to be sure that all of them will be close before starting my application. Thank you in advance for help M. Thank you for your response. I'm working with VS 2003 and I was looking to clos ...Show All

  • Visual C# Mutex.Dispose() - Does it release the mutex?

    Does anyone know if disposing a System.Threading.Mutex object will call ReleaseMutex() for the object automatically. I'm assuming not, but I can't find anything explicit in the documentation. Does anyone know Yes it does. Mutex inhires the WaitHandle class that contains a Dispose method. WaitHandle.Dispose calls the WaitHandleProtector.Close method that releases it. ...Show All

  • Visual Studio Express Editions active directory restore password

    is there a best practice recommendation for the active directory restore password and the domain administrators password being the same or different does it matter either way you can answer this question directly at http://www.helpshare.com/qhome.asp qid=2590 and get a reward. ...Show All

  • Visual Studio Team System Workspace folder mapping bug?

    I have a directory at C:\Projects\Foo\Src\Runtime\EncryptionLib\UnitTests that I branched to location $/Foo/Branches/Developer/hillr/Exp_UnitTests.  I then try to cloak $/Foo/Src/Runtime/EncryptionLib/UnitTest and then map $/Foo/Branches/Developer/hillr/Exp_UnitTests/UnitTests to C:\Project\Foo\Src\Runtime\EncryptionLib\UnitTests.  VSTS gets confused.  When I edit files in the UnitTests dir in this worksapce they are really being edited on the trunk instead of my private branch.  When I go back to the Workspace mapping it has removed the two lines I added and put in: active $/Foo/Src/Runtime/EncryptionLib & ...Show All

©2008 Software Development Network