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

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

jhikel

Member List

J1234
ro88o
Fistandantilus282303
arro239
Littletommy
e_mpika
Reena33
Golden Strands
hgamauf
DTHMTLGOD
eugene7_11
pvvr
Thomas2054
chriscomp
setareh
SabAlo
LeRoi
JCube
nbrege
Carver42
Only Title

jhikel's Q&A profile

  • .NET Development String

    If I were to do this. public class myclass { //Is this better private string mymember; //or this better private string mymember = null; public void mymethod() { mymember = "string1"; } } What is the difference between the two way of initilizing the string variable. Because String is immutable does the first method create two instances of the String variable the second just one What is the recommended way of initlizing private variable that are assigned in once place in the class and used everywhere else Thanks Mike. So in effect the immutability of string bites you only when you do this String test; test = 'first time'; test = 'second time' Is that right If I never c ...Show All

  • Visual Basic graphing persistent lines in a PicBox, NOT from the paint event??

    I made a routine that evaluates a math expression by plotting its graph in a picbox. To get a persistent linegraph in graphics in VB.net, I found out that I have to draw in the _paint event of a picbox. That works, but now I want to make a separate button that puts a second (and third, etc) linegraph onto that same picbox so that they both are persistent. Purpose is to allow students to alter a parameter, then plot a new line overlaying the old one to let them evaluate what changes occur. But obviously the second one has to be drawn when I press the button, rather than from within the paint event. How can I make a button that writes a line in the picbox, WITHOUT having it in the picbox_paint event, and yet keep it persistent T ...Show All

  • Software Development for Windows Vista com +

    I am looking at COM+ these days to deploy an application that will be accessed from multiple clients As the number of clients grow, I want us to be able to have more server machines share the load of clients, but with transparency to the clients. This means the clients should still be using one server (primary server machine), but if the load is more this promary server should share its load with one or more server machines Is this something that is seamlessly possible in COM+ Can you point me to a related site that explains this Please see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1112987&SiteID=1 HTH, Florin ...Show All

  • Windows Forms setup.exe that doesn't require .NET 2.0

    I've created a setup project with VS2005 and can run my install fine on systems with .NET 2.0. On many of my customer's systems, they do not want to install .NET. Currently when I run my setup.exe it goes off and tries to install .NET 2.0 first and fails if I don't. How do I create a setup.exe/.msi that does not require .NET 2.0 on the system doing the install No, there's no way to do that. There's only one installer for the .NET Frameworks 2.0, it's a system/platform component that once installed allows a bunch of applications to run on it. One of the great things about our bootstrapper is that if the Frameworks is already installed, it won't download or re-install it. ...Show All

  • Windows Forms Autocomplete ComboBox

    Is there a way to set the size of the autocomplete dropdown You know when you type in a text in the combobox it will suggest come values in a dropdownlist. Can the size of the thing be set Thanks, does someone already know how to do this I want to manually specify the width of the autocomplete dropdownlist, here is how my autocomplete dropdownlist looks like in this moment: http://img364.imageshack.us/img364/1429/muestraincorrectoautocoix4.png but I can't find how to do it, I only found this thread ...Show All

  • Visual Basic Setting MSSQL Entry as Variable in VB.NET

    What I'm trying to do is select data out of a single cell in a MSSQL table using the SQL statement "SELECT JobData2 FROM tblJobs Where JobID=1" which will return a string and set that string as a variable within my VB.NET program the purpose of this is so that when all the MSSQL data is dumped and uploaded it will get uploaded in /home/variable/data/ on the FTP server anywhere heres the majority of the code any help would be much appreciated. Public Sub Work() 'GLOBAL VARIABLES FOR DATABASE DUMP AND FTP UPLOAD Dim dbserver As String = dbserverbox.Text Dim dbusername As String = dbusernamebox.Text Dim dbpassword As String = dbpasswordbox.Text Dim dbpath As String = dbpathbox.Text Dim ftpserver As String = f ...Show All

  • Visual C++ First-chance exception... access violation... debugger winds up in malloc

    Hello all, I keep getting an exception whenever calling 'new'. I'm implementing the singleton function and I have a static * p initialized to NULL. When the 'getInstance' method is called, if the static * p is still initialized to NULL, I call p = new P(); At that point I get a First-chance exception ... access violation message and my debugger tells me the problem is in this function: void * __cdecl _malloc_base (size_t size) { void *res = _nh_malloc_base(size, _newmode); RTCCALLBACK(_RTC_Allocate_hook, (res, size, 0)); return res; } at the line "void *res = _nh_malloc_size...." My program stops running at this point as well. I have error messages that will print just before the new call, but not at the beginning of the constructor ...Show All

  • .NET Development Where can I find help on this

    Hi, I have the following question, where can I find help on it. "I am receiving data from a modem on COM1, now i want to deploy this app on a main server and from the main server i want to get this data on the network(LAN). what will be the most appropriate way Because I am not able to use serial port in web services. Thanks You want to use SerialPort component in Web Service Hmm, There may be a hybrid solution, i.e A webservice further communicates with a Windows Application / Service on the same machine via Remoting and gets its real work done from the Windows Application and retun back the result to web service whic further retun the data to the caller of web service. Does it make ...Show All

  • Visual FoxPro appending data into an existing DBF with an autoincrement field

    I have a table called special.dbf. It has a autoincrement field. I would like to append records to this file. The autoincrement field always defaults to zero and produces an error message. Any suggestions on how to append or insert records would be helpful. I would like to append using a text file or excel file from MS Access table Or import directly from Access to FoxPro. Oh I thought you were directly appending from SQLExec() result. You're putting a text file in between. Then create a temporary cursor that matches the structure of your table and format of text file. Drop autoinc field. Append. ie: table: AIncField, Field1, Field2 text file: 0,"Field1Value", " Field2value " select * from myTable in ...Show All

  • Windows Forms Gird View Sorting

    Hi I'm populating info from a database to a gridview format. It has about 8 fields. Now when I click on the header from each coloum, I assume it will sort acording to that colum. But that does not happen. For ex. when I click on date, it changes the order it is displayed but its not sorted properly. Not in assending or decending. Why is this How can I get this to work Are you having trouble sorting just the dates or other fields as well If you are only having problems sorting dates, it might be because you store or retreive the data as strings. For instance, if you had these 3 dates: 1/2/06, 2/3/06, and 11/12/06, and you sort by date, you would expect them to be sorted in that order. However, if you sort ...Show All

  • Visual Studio 2008 (Pre-release) Service contract inheritance.

    Hi, I have a base service contract, I will call it IBase<T>, that exposes a generic method, Add<T>(T t1, T t2). My problem is that when I inherit this contract from another service contract [ServiceContract(Namespace = "http://schemas/ConcreteTypeService/" IChild : IBase<ChildType> the method exposed in the base interface has a different namespace then then child methods. Is there a way of forcing the same namespace Thanks, Nicolai. No. The namespace of the methods in the base interface is part of its service description, so any interfaces that inherit from the base interface (or any classes that implement it) need to fullfil the "is-a" relationship by preserving the ...Show All

  • Windows Live Developer Forums Getting user's msn messenger contact list

    Hi, I'm looking for a way of displaying msn messenger's contact list in my application. I tried C# examples found using MessengerAPI, but it doesn't work. I also tried using dotMsn, but it doesn't work either! In fact, I just cannot connect to my msn account using the sample shipped with dotmsn :-( Do you know what to do for this Thank you very much ! Thibaud You will easily get MSN buddy list if you use my component. Thibaud wrote: Hi, I'm looking for a way of displaying msn messenger's contact list in my application. I tried C# examples found using MessengerAPI, but it doesn't work. I also tried using dotMsn, but it doesn't work either! In fact, I just cannot connect to my msn account using ...Show All

  • Visual Studio 2008 (Pre-release) Xml schema features in DataContract/DataMember

    The DataContract/DataMember attributes lead to generation of XSD's, which I consider a nice and usefull feature. Strings map to xs:string, classes to complex types, so far so good. These XSD's are validated only very loosely/forgiving and not on the server (or maybe the client). After searching this forum, I've found a post in which rough directions were given on how to implement XSD schema validation in a behavior. My issue, however, is that I consider the DataContract/DataMember options very limited when it comes to data validation options. I can define a DataMember as string, but I cannot define a minimum and maximum length, which is very easy to do in Xml schema. Xml schema has a lot of facets to further restrict types. I don't thin ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Create custom themes

    Is it possible to create custom UI themes for the Xbox 360 using the XNA If not what would it take to make one One of my company's clients is interested in making a branded one. Creating custom themes is not something XNA Game Studio Express enables. You'll need to work with the Xbox developer relations to see if it's possible to create a corporate theme. http://www.xbox.com/en-us/dev/default.htm ...Show All

  • Visual C++ Error in loading DLL with ActiveX object

    Hello, I have an ActiveX object, created with ATL, which generates a "Error in loading DLL" message when I try to call one of its method in jscript. E.g. var XSIDial = new ActiveXObject("XSIDial.XSIDialog"); TestCombo = new Array("one", "two", "three"); UseAnim = XSIDial.Combo( "Test for Combo", TestCombo ); I tried in vbscript and it gives the same error. DllGetClassObject gets called and returns the right ActiveX object. The object is compiled with visual 2005 but it used to work with visual 2003. Do you have any idea how I can debug that thanks -mab Did you embed the manifest which states which runtime version to use ...Show All

©2008 Software Development Network