Software Development Network Logo
  • Visual Studio
  • SharePoint Products
  • Windows Vista
  • Visual Basic
  • Visual FoxPro
  • Windows Forms
  • Visual C++
  • IE Development
  • .NET Development
  • SQL Server
  • Audio and Video
  • Smart Devicet
  • VS Team System
  • Game Technologies
  • Microsoft ISV

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

Basalingamma

Member List

Wicket
MariamCR
Cavetroll
subhanet
KevinBurton
Tryst
aoky
Rykin Poe
Charles Lewis
Jonathan Marston
rxg
DeveloperJTM
Zadoras
espeir
D_W
weoili
bbowling
mabrouk
cvajre
David_Lindley
Only Title

Basalingamma's Q&A profile

  • Visual FoxPro MySQL and VFP

    Hi experts. I have a MySQL database. I operate with them using syntax like SQL(sqlhandle, "select * from...") I copy them into cursor and than operate with a cursor. Is there a simplier way how to work with them Thanks in an advice. I understand but I have asked whether the problem may be that I am using free MySQL database, whether this speed isue can be one of the database limits. the code below takes somethimes 0,61seconds and sometimes up to few seconds(1-3) start=SECONDS() OPEN DATABASE data mySQLhandle=SQLCONNECT("connection") end=SECONDS() WAIT WINDOW end-start the code below takes 1325.436seconds to complete (10 000 records) start=SECONDS() FOR i=1 TO 10000 SQLEXEC(mySQLhandle,"INS ...Show All

  • .NET Development Sticky SqlCommand session

    Hi all, After executing a SqlCommand, and closing its' connection, and even manually disposing everything off... sp_who still says that the session is there, untill I close the whole application. It's a Big deal: because of the locking i'm creating in that SqlCommand, that never release... untill i close the application. how can get rid of the SqlCommand session and does this relates to connection pooling ... SqlConnection sqlCon = new SqlConnection(...); sqlCon.Open(); SqlCommand sqlCmd = new SqlCommand("create database foo", sqlCon); sqlCmd.ExecuteNonQuery(); sqlCmd.Close(); sqlCmd.Dispose; sqlCmd = null; sqlCon.Close(); sqlCon.Dispose(); sqlCon = null; ... I have my foo databas ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. fx Shader files do not support more than 1 technique?

    I found some strange bug in the Effect class (I think), maybe this was mentioned before, but I couldn't find any information on this. I wrote some simple shaders for line rendering (see more details and fx source code on my blog). If I put each technique in a own file, I can access the shader technique passes with: effect.Techniques[0].Passes But if I put 2 techniques into 1 fx file only the first one works. If I access the second one either by calling effect.Technique[1] or effect.Technique["NameOfTechnique .."] it still accesses the first technique. I'm pretty sure this is not a user error on my side because if I have only 1 pass in technique 1 and 2 passes in technique 2, the app crashes if I try to access the 2nd pass in the ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. dinput check

    I don't have the sdk.I plan to get it soon. can someone tell me if this works //link to dinput8.lib /* orders: create CInputsystem object like CInputSystem myinput; next call initialize for mouse and keyboard Initialize(hwnd,hInstacnce, true , IS_USEMOUSE | ISUSEKEYBOARD) acquire all update every frame movements and keys and process accordingly unacquire all shutdown */ //#include <windows.h> #include <dinput.h> #define IS_USEKEYBOARD 1 #define IS_USEMOUSE 2 class CInputSystem { public: bool Initialize(HWND hwnd, HINSTANCE appInstance, bool isExclusive = true, DWORD flags = 0); bool Shutdown(); void AcquireAll(); ...Show All

  • Visual C++ executing a member function in a separate thread

    hello everybody !! my new problem is that i have a class that contain a some functions and some variables i want to execute one of these functions in a separate thread using AfxBeginThread(...); and FYI this function uses some member variables of the class to do it's work any idea thnx 4 ur time and concern a.hemdan Creating a new thread will not be your main concern. If more than one thread accesses member variables at the same time, with no synchronization, your application is likely to crash, or corrupt data. I suggest you read "Multithreading: Creating Worker Threads" at http://msdn2.microsoft.com/en-us/library/69644x60.aspx , and then "Multithreading: Programming Tips" http://msdn2.microsoft. ...Show All

  • Windows Forms Tricking the Designer/PropertyGrid/Serializer

    Hey Guys. We have the following classes: public class Class1 : Component { private Class2 _class2; public Class2 MyClass2 { get { return _class2; } } } public class Class2 { public event EventHandler MyEvent; } I want to show MyEvent in the PropertyGrid when it's selected item it an instance of Class1. I managed to get it to show this using a custom designer and this code: public class Component1Designer : ComponentDesigner { protected override void PreFilterEvents(System.Collections. IDictionary events) { base .PreFilterEvents(events); ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Orthographic UI

    So...in OpenGL I would use glOrtho(0,1,1,0,0,1) before processing my UI draw calls to set up my screen to be: 0,0 . . 0,1 . . 1,0 . . 1,1 that way, I could tell a UI component to be at 0.1, and it would make it so at any aspect ratio, any resolution, that UI component would always draw 10% to the left of the side of the screen. I want to do something similar to the UI system I'm working on for XNA, but I'm not sure how to setup the XNA camera to switch to an Orthographic projection before I process my UI components using the sprite batch. Anybody know Ben Vanik wrote: The easiest hack (with the relatively hardest one being rewriting SpriteBatch) is to subclass SpriteBatch and add the methods you ...Show All

  • Visual Basic Groupbox resizing info/help

    Hi How do I make a groupbox automatically resize to the form that is in being expanded SITUATION:- I have Two groups with buttons etc one docked on the right the other docked on the left:- When I expand the form groupbox1 goes to the right and groupbox2 goes to the left leaving an empty space in the middle of the two groupboxes, how would I expand both group box’s evenly into the empty space in the middle So that grouptbox1 expands to the left (into the middle) and groupbox2 expands right (into the middle) Many thanks, Andy HI, Thanks that works well, is there a way that i can make the cells user movabel So the user can grab the colum in ...Show All

  • Visual J# javax

    hi, i have the java sdk and the ktoolbar, and i have java examples of how to program in j# for a mobile phone. But the thing is is when i try to import javax like the examples, its says it cant find it, e.g. import javax.microedition.midlet.MIDlet; import javax.microedition.lcdui.*; it just says it kant find javax any help wold be appreciated -alex vjssupuilib.dll is the Supplemental UI Library included with Visual J#, and provides equivalents for much of the functionality described in the Java 2 JFC Swing specification. So please add this dll as a reference to your project. If you are using J# 2.0 or Visual Studio 2005 (J# installed) then you can find this dll in %sysstemroot%\ WINDOWS\Microsoft.NET\ ...Show All

  • Visual C# nonserialization of events

    I know how to do it ie [field:NonSerialize] , but I do not understand why I need specify the field: attribute target. Incidentally it works fine, but finding it was not easy - I found it in the ECMA Language Specification, not a particularly easy read, later I found it in an MSDN article. But they do not explain the "why", just the "what". And, how can I access, via Reflection, attributes with a specific target. When I get the custom attributes for an event with the [field:NonSerialzed] attribute via the EventInfo.GetCustomAttributes method it is not reported. Nor can I figure how to access an event's underlying "field"; unlike a methods return value which is available from MethodInfo and or MethodBase (I for ...Show All

  • Visual Studio Team System How to make the webtest use unique values in different runs from data source

    Hi, I have a web test and it pulls data from a table. My requirement is that the web test should use each of the rows in the table only once. i.e if I execute the webtest once, it pulls the first row. When I execute the web test again, it should use the second rwo but not the first. Is there any mechanism to achieve this Please read http://msdn2.microsoft.com/en-us/library/ms182546.aspx , section To Configure data binding in the Web test. It describes how to configure web test to run under setting "One run per dada source row". Thanks. ...Show All

  • Windows Forms form method Show()

    I have 2 forms. from the button of form1 i display the form2 Form2 f= new Form2(); f.Show(); How can i check if the form2 is dislayed (or has been closed) , so i dont display twice the form2 when i click again the button. In solution 2 i think the form1 must be informed if the form2 is shown or not. Is any way to know that the form2 (which is displayed with Show() ) has closed. ...Show All

  • Visual C# File.Encrypt( ) not encrypting...

    Hey guys, I am using the File.Encrypt( ) function to try and encrypt an XML file I have. The filename turns green when viewed in windows explorer (which I assume indicates an encrypted file). However, when I open with Notepad it is not encrypted. I then sent it to a co-worker to see if he can view the contents. It was not encrypted for him either. Am I missing something Thanks, Chris Hello and thanks for replying. I'm still a little confused... I emailed it to him. Why was he able to open it There weren't any warnings that popped up. Thanks for your help. Chris ...Show All

  • Windows Forms VB.NET setup project and automatically registering DLL files?

    I am trying to make SETUP.EXE file for my service project (not application but service). That is all fine, but now I need that Installer automatically register .DLL files. For now I put reference in SETUP project with Register vsdraCOM option, but all the installer made is putting the DLL file in the same directory as .EXE file when installation is complete. Registering .DLL files is not done. Can you please help me how to make automatically registering .DLL files with installer for VB.NET Thanks in advance Regards Gogy Hi i would advise to use code to register assembly in ur dll file itself. include an installer class in ur dll file;s solution and write following code in it. I need to register Observer.d ...Show All

  • SQL Server SQL Server Management Studio Reports "Column Prefix" errors on fields such as [First.Name] and [Last.Name]

    Hello, I have an existing SQL 2000 database that I am now accessing from SQL Server Management Studio. In the past, I've created specific tables using dot notation within the field names. I've used Enterprise Manager to edit and update these specific tables without problems. As far as I am aware, the dot notation is legal for SQL Server 2000, 2005, XML, etc. The following example table illustrates the problem I am having. CREATE TABLE [dbo] . [TestTable] ( [First.Name] [varchar] ( 50 ) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Last.Name] [varchar] ( 50 ) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, CONSTRAINT [PK_TestTable] PRIMARY KEY CLUSTERED ( [First.Name] ASC , [Last.N ...Show All

©2008 Software Development Network