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

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

laboremus

Member List

Bill Schanks
MelissaA
ElectricBliss
RtMahi
Indigo Cowboy
Eng. Habeeli
TheBlackhorse
AFM
rp1933
Peter van der Veen NL
SouDev
Flecko1
Chuck S.
RossDempster
cybertaz69
Johnny Raved
Peter Aspect
CaptainSmudge
WelshBird
Crazy Engineer Kid
Only Title

laboremus's Q&A profile

  • .NET Development Path.Combine w/ UNC Root

    I am trying to combine two paths using System.IO.Path.Combine(str1, str2) but it's not working. Here is my code: Dim str1 as string = "\\server1\share" Dim str2 as string = "filenotfound.jpg" Dim path as string = System.IO.Path.Combine(str1, str2) Path is always equal to str2. For some reason Path.Combine() doesn't work with UNC filenames. Is there a built-in function that can combine a filename with a UNC root jwdenny, The good news is that Path.Combine definitely does work with UNC's. The bad news is that I can't see anything wrong with what you posted. Try to write a program containing exactly the three lines you posted, and see what it does. Or post some more of the code that fails. HTH ...Show All

  • Windows Forms Manually invoke a timer time-up event???

    I have a timer that I'm using in my winforms application. I was wondering is there a way to manually invoke the timer time-up event by not actually waiting for the timer to expire I need to have the timer up event code executed in my application at one point. private : System::Void timeup(System::Object^ sender, System::EventArgs^ e) { } Is there a way Thanks!! For the arguments pass in whatever is relevant to the method. Often times when I'm handling events like Timer I don't need the arguments at all. So if I call the method manually I just pass in Nothing,Nothing. ...Show All

  • Visual Basic VB 2005 Express & SQL Server 2000

    I just started trying out VB 2005 Express, i'm trying to connect to a SQL 2000 server, is that possible I'm only seeing options for SQL 2005 or Access Any help would be great.. Chris If I am not mistaken the VB Express is limited to local instances. So if your problem is that you are not being able to connect to a SQLServer. Are you using VB.Net Express and your SQL Instance is remote If so, the express IDE could not connect to a remote instance of SQLServer. It can only connect to a local installation. http://msdn.microsoft.com/vstudio/express/support/readme/#exvb "1.3.13 SQL Server Express is the only version of SQL Server that will work with Express Editions other than Visual Web Develope ...Show All

  • Software Development for Windows Vista Problem with SetTokenInformation (cannot set session id information)

    Hi, I have a service that works fine under XP and that needs to launch a process in a given session (not necessarily 0). No communication needed, I just have to launch (inject) the process in the user's session. This is done as follows: OpenProcessToken(GetCurrentProcess(), TOKEN_QUERY | TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_SESSIONID | TOKEN_ADJUST_DEFAULT | TOKEN_ASSIGN_PRIMARY | TOKEN_DUPLICATE, &hToken)) LookupPrivilegeValue(NULL, SE_TCB_NAME, &tp.Privileges[0].Luid)) AdjustTokenPrivileges(hToken, FALSE, &tp, 0, NULL, 0) SetTokenInformation(hToken, TokenSessionId, &m_dwActiveSession, sizeof(DWORD)) CreateProcessAsUser(hToken,... Under Vista, everything works fine except SetTokenInformation that ret ...Show All

  • SQL Server SQL statement troubles finding maximums.

    Hello everyone! Here's the deal. I have a table that contains data for contracts each time they are brought to our attention for a review. The first column in the table contains the contract number, the second column contains which review number the data is associated with (the first time it was reviewed, the second time, third, etc.). I need to make a subtable that contains the records from the last review of each contract. The problem is that, of course, each contract can and will have different numbers of reviews than most other contracts. I know how to use the max funtion to return the largest review number of the table, but this doesn't help because not all contracts have that many reviews. Is there any way I can accomplish this us ...Show All

  • SQL Server alternating row color

    Hi I was able to generate rows with alternating colors by using the below exp. but it only works fine with table report. =iif(RowNumber(Nothing) Mod 2, "Lavender", "White") Please help me to get alternating row colors in a matrix report. Regards Durai Chris Hays provides a matrix sample and explanation on his blog: http://blogs.msdn.com/chrishays/archive/2004/08/30/GreenBarMatrix.aspx -- Robert ...Show All

  • Software Development for Windows Vista Determining Process Integrity Levels -- windows platform sdk

    Hi, I'm a novice to window programming There are functions in vista-related docs that I'd like to use. eg)  Understanding and Working in Protected Mode Internet Explorer shows how to determine integrity level of a process. void ShowProcessIntegrityLevel() { HANDLE hToken; HANDLE hProcess; DWORD dwLengthNeeded; DWORD dwError = ERROR_SUCCESS; PTOKEN_MANDATORY_LABEL pTIL = NULL; However, the red-colored line produces an error. I found out that you need vista version of windows platform sdk when function information in msdn says that minimum operation systems should be windows vista. eg) ChangeWindowMessageFilter Function Function Information Minimum DLL Version user32.dll ...Show All

  • SQL Server Running SQL Scripts against SQL 2005

    Our developers generate a large number of SQL scripts that get applied with each application update. Is there an easy way to select one script after the other and run them against a particular database Right now it appears I have to open them one by one (since the window selector is useless for actually picking a script) by scanning through the directory for the next script, confirming the connection (thankfully I'm using Integrated Security), Changing the current database (since it always defaults to master) and finally run the script. And I'm ending up doing this for every script. Hoping there's a better way to do this. Thanks, Larry Management studio accepts a subset of sqlcmd statements. The one you want to use is :r. Th ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Audio Question

    Sorry if this has already been answered but I don't really have time to look for that answer here it is... It has come to my attention that the October 2006 DirectX SDK has come out and has a version of XACT different from the August 2006 so... Does the current version of XNA Game Studio Express support the XACT version on the October 2006 DirectX I would have to spend another 3 - 4 HOURS downloading the other version so please anwser soon... Dude, I don't believe you will accept ( or else.. not like it) if you have an download limit, or some else of network limitation. half a gig is not nothing. What I hear I just need to dump some dependecies in the same folder, and I do not need to al the sounds and help files for 99 ...Show All

  • SQL Server No idea if this is the right place to post... Need stored proc help

    Hello, I am trying to make a stored proc that will tell me if there are any rows in a table. The table name is a variable that I get at the start of the proc it is not sent in. What I am looking for in the table is sent into the stored proc. here is where the problem is, i can not save it. It does not seem to allow me to use the if exists with variables. I have tried it also without the + and with the + ' to create a string I cant seem to get it anyway I try. if exists (SELECT * FROM + @TableName + WHERE + @ColumnName + = + @SearchStr2) print 'got here ' +@TableName + ' '+ @ColumnName END Thanks for any help Hi, Can you mark a correct answer for us please. Thanks! ...Show All

  • .NET Development Is there any way to tell if a Process has been Killed?

    If I've got a Process object, is there any way to tell whether it exited normally or was Killed ( I believe the answer to my question is "no", but just wanted to verify that.) Thanks...Rick I haven't tried this.. but one thing you might do is to inherit from the Process Class and add a new Property called WasKilled. Override or create a new Kill method for this object and set the wakilled value to true Public Class ProcessEX Inherits System.Diagnostics.Process Private _waskilled As Boolean Public Readonly Property WasKilled As Boolean Get Return _waskilled End Get End Property Public Sub KillMe() Mybase.Kill() _waskilled = true End Sub ...Show All

  • .NET Development RSA Key Container stored on hard drive?

    I have a question about RSA key containers. In the following code, a key container is created and passed to the RSA CSP. Every time the RSA CSP is initialized, a new key is created. MyCp = New CspParameters MyCp.KeyContainerName = "My Key Container" MyCp.KeyNumber = 1 'new key created here MyRSA = New RSACryptoServiceProvider(1024, MyCp) Is the key stored on the hard drive somewhere Can I close the app and restart it and access the key which was maybe stored on the hard drive. So far I have been unable to use a key container once the app has been closed. I suspect the key container is stored only in memory so it disappears once the app has been closed. Is this correct In the event the key container ...Show All

  • Visual Studio Express Editions hello, can anyone tidy up this or improve it please,just for my education

    hello all I am doing an app (as a beginner), to write to a database. I have some combo boxes, and the user is not allowed to enter a name of mickey mouse for example but has to select a name from the list. The code below works, the validation is fine, but i feel i made a pigs ear of it, for instance i have to save the original text in the combo box selected as this was be written over by each iteration of the for validating loopand write it back out to the text box, when the validation has finshed. cmbrequested by is the person why requested teh work to be done. if cmbRequested_by.Text = "" Then ErrorProv1.SetError(cmbRequested_by, "Field can not be nothing" ) Return False Else Dim ...Show All

  • SQL Server MDX to get member names?

    I want to get a list of member name for an attribute, without accessing the fact table, for speed. I can write a statement like "select {Measures.SalesAmount} on columns, {CostCenter.Members} on rows from MyCube", which will give me a list of Cost Centers going down. Is there a way to get this same list, but without accessing the fact table, with the hopes that the query will execute faster Thanks for any assistance, Ernie Assume the CostCenter attribute belongs to the dimension [CCDim] select CostCenter.members on rows from [$CCDim] ...Show All

  • SQL Server copy row within same table

    Gud day guys...i have this problem of copying records within a table...pls help me I have tried the code below but returned an error....... "violation of PRIMARY or UNIQUE KEY constraint "INTEG_29" on table "SERVICE" " Insert into Service (GroupNo,ServiceCode,ServiceName,SystemNo,Upload,timestampstr) SELECT 6,ServiceCode,ServiceName,SystemNo,Upload,TIMESTAMPSTR FROM Service WHERE GroupNo=1 is this possible pls help me with the sql statement to make this work...... note: timestampstr is the primary key with a not null value ... you can not insert the value in the TimeStamp datatype explicitly, the Server will automatically insert the value into it when you do insert operation. ...Show All

©2008 Software Development Network