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

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

Gamargia

Member List

Eng_Mohamed
Ilia
epsilon_ro
mcrisf
Patrick Sears
Raffaele Rialdi
chris441962
Thwack
LiamD
Stonaltar
Mitch5713
Deepsteep
xRuntime
crbeckman
siavoshkc
malous1
MuscleHead
hohsen
Tim Anderson
Merie Cockrum
Only Title

Gamargia's Q&A profile

  • Visual C++ typdef in template-class does not compile.

    Hello, I have following Problem: I wrote with Visual Studio 6 a template class that looks like this: template < typename _KEY, typename _ITEM> class API_EXPORT CServer { protected : std::map<xgw::xstring, _KEY*> m_NameMap; public : t ypedef std::map<xgw::xstring, _KEY*>::iterator Iterator; CServer::Iterator Begin() { return m_NameMap.begin(); } }; Well, VC6 does hav no problem compiling the class! But when i try to compile with Visual Studio 2005, I get many errors! Following pointing to the typedef line: Fehler 2 error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'Iterator' d:\_development\nemesis\include\server.h 50 Fehler 3 error C4430: Fehlender Typsp ...Show All

  • Smart Device Development DateTime Problem

    Iam using a Datetime in my database. I want the data to look like this 2006-10-15 00:00:00.000 But now I get it like this 2015-06-10 21:58:14.000 Iam creating a DateTime with this code: int Year = int.Parse(dateTimePicker.Value.Year.ToString()); int Month = int.Parse(dateTimePicker.Value.Month.ToString()); int Day = int.Parse(dateTimePicker.Value.Day.ToString()); int Hour = int.Parse(dateTimePicker.Value.Hour.ToString()); int Minute = int.Parse(dateTimePicker.Value.Minute.ToString()); int Second = int.Parse(dateTimePicker.Value.Second.ToString()); int MilliSecod = int.Parse(dateTimePicker.Value.Millisecond.ToString()); DateTime SelectedDate = new DateTime(Year, Month, Day, Hour, Minu ...Show All

  • Windows Forms cONTEXTmeNU ON lEFT cLICK

    Hai, How can I have ConextMenu on LeftClick.... I hope you have a good reason for wanting to do this. A ContextMenu on a left click is really not "standard" behavior ... are you sure your users will want and understand this concept Normally I wouldn't recommend implementing behavior in an application that is different than what most people expect in a Windows app, which in this case is a ContextMenu on a right-click. Why do you want to change this basic User Interface ...Show All

  • Visual Studio Team System Multiple vsmdi files

    Hi, We are getting multiple vsmdi files.Everytime someone runs a unit test the solution is automatically checked out and a new vsmdi file is created using the naming pattern MySolutionName1.vsmdi, MySolutionName2.vsmdi, etc. I've compared the files and they are the same. They live in the solution root and always have. The workaround that we have is to undo checkout on the files in question and then it works fine unti one next restarts the IDE. Any ideas anyone else getting odd behaviour with vsmdi files I've C&P'd the XML contents below:   < xml version="1.0" encoding="utf-8" > - < Tests >   < edtdocversion branch =" retail " build =" 50727 " ...Show All

  • Visual C# DataTable + delete selected Rows

    Hi I have a data table , which gets populated at the end of a certain transaction with say 30 Rows. Now depending upon the condition the user selects, i wanted to delete certain rows as given below.But the thing here happening is, first time the fifth row gets deleted,the row count is getting changed in the table to 29, which is playing the trick here as we can see that when next delete statement isencountered, there is no row with index 29 which is throwing an error and some times the row which i want to delete is not getting deleted, instead another row with altered index is getting deleted.How can we have a workaround for this situation My intention is just to delete the rows at the specified index from the original output ...Show All

  • .NET Development setting up cookie

    Let me first describe scenario.. I have a web app (say myapp) on mysvr I created a login app to centrally authenticate all the users... login app is also on mysvr.. Also, There is a generic server from where all the users will be login from.. (say gensvr).. STEPS: Users will be logining on to gensvr and click on the link for myapp on mysvr.. The gensvr had spoofed the login page of login app.. so it will first create the cookie on user computer and then redirect user to myapp page.. myapp will first check if the cookie exists and then allow users to navigate if cookie proesent.. CODE: login app code: ------------------------------------------ Protected Sub btnlogin_Click( ByVal sender As Object , B ...Show All

  • .NET Development HttpWebrequest Post

    Hello Im trying to upload a file to a https address using the getRequestStream method of the httpWebRequest class. The code appears to work fine and no exceptions are thrown, but the file does not appear to have uploaded to the server. The stream is working as it should. The server requires authentification via a public key, which i have and is installed. I have used the CreateFromCertFile method of the X509Certificate to add the certificate to the WebRequests client certificates. I belive this method extracts the public key from the certificate If I try and call the GetResponse method, an exception is thrown - The remote server returned an error : (401) Unauthorized. The URL is something like https://somesite.com:500/test/tes ...Show All

  • Smart Device Development SystemParametersInfo in Mobile 2003

    Hi alls, I try to use SystemParametersInfo for obtain some informations from my PPC 2003 like SPI_GETBATTERYIDLETIMEOUT and SPI_GETEXTERNALIDLETIMEOUT. Is it normale that I have 0 in pvParam Thank Hi , This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forums for this type of queries. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati . ...Show All

  • Visual C++ Compiler related?

    here're sample codes: int fun(int n) { if(++n==5) return n++; return n*fun(n++); } void main() { int i=1; int sum=fun(i); cout<<sum<<endl; } (first, I knew the codes above applied bad coding style. here pls ignore it, i wanna know some other behaviors of C++/compiler) I used VS2005 to compile and execute it, i got a sum = 300 as the reslult, while on TC and gcc the result was sum = 120 . i looked into the assembly and found the difference happened because of different implementation of the statement n*fun(n++) . my question is - Did i get the expected result Is the result/behavior truely compiler dependent and subsequently, i got 300 and 120 in VS2005, when i chan ...Show All

  • Visual Studio SVCHOST.EXE Application Error - The instruction at X referenced memory at 0

    Hello, Im trying to debug this application which works but gives some exceptions in the complete beginning. Why would a program try to call MSCTF.dll (which has something to do with office..) 'video1.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded. First-chance exception at 0x7c918fea in video1.exe: 0xC0000005: Access violation writing location 0x00000010. 'video1.exe': Unloaded 'C:\WINDOWS\system32\MSCTF.dll' 'video1.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded. First-chance exception at 0x7c918fea in video1.exe: 0xC0000005: Access violation writing location 0x00000010. 'video1.exe': Unloaded 'C:\WINDOWS\system32\MSCTF.dll' I also am looking for a fix for this svchost error - 0x745f2780 referenced ...Show All

  • Software Development for Windows Vista Can't Open a Saved Executing Workflow - Persistence Not Working

    For some reason I'm not able to load a saved workflow that is executing. I've created a very simple workflow that has 2 delay activities. When the first delay activity executes the function workflowRuntime_WorkflowIdled is called. I perform a very simple test where I save the running workflow to a file and then I try to reload it off of disk. When I reload the workflow I get the error shown down below. void workflowRuntime_WorkflowIdled( object sender, WorkflowEventArgs e) { using ( FileStream saveFileStream = new FileStream ( "c:\\test.bin" , FileMode .OpenOrCreate)) { workflowInstance.GetWorkflowDefinition().Save(saveFileStream); } using ( FileStream openFileStream = new ...Show All

  • Community Chat .NET

    What is the difference between .NET and java. If both are platform independent, can you suggest which is the most preferable based on platform independency. .NET application needs to have .NET framework running on the machine where you want to run it. In case of Java, you need to have JVM/JRE running to run Java application. As per my knowledge, JVM/JREs are available for different plateforms but DOT NET needs to have MS operating system. Note: there is possibility to run DOT net application on non-Microsoft plateform using some 3rd party application like MONO. Hope this helps you understand the difference. Well, I will love to work on DOT NET.... ...Show All

  • Audio and Video Development Can XPath variables be used in <styling>

    I wonder if the xpath variables can be used like : style:x="$style_x" in <styling> in .xmu , and style_x is from document.setXPathVariable("style_x","200px"); in .js . I know the xpath variable can be used in <timing> and <body>. Anybody can help me Thanks in advance. HI there Xpath variables are meant to be used only inside Xpath Expressions (that's why they are called Xpath Variables :) ). I guess at least pre-defined Xpath variables can be used in XMU (inside Xpath Expressions). Author can define her own Xpath Variables in a js file.I am not sure whether author-defined variables can be used in XMU ( inside Xpath Expressions). ...Show All

  • Visual C++ DLLMain defined in .obj file?

    Does anyone know if when you use the wizard to create a dll in visual c++, it puts the definition of DLL_Main in the Project_Name.obj file I get an error when I add in a definition of it in the cpp file, saying its already defined in the obj file. It's not in the cpp file when I first create the workspace. In fact yes. I'm not much of a VB user (be it VB6 or VBA or VB.NET) but as far as I know in VB6 and VBA Integer is 16 bit, not 32 like in VB.NET so I was wrong in the other thread. You need to use Long on the VB part, not Integer. On the C/C++ you can use long or int, it does not matter because both are 32 bit in size. So in the end the VB part shoud look like this: Private Declare Function summer Lib "D:\Projects\Tests ...Show All

  • SQL Server BCP -- Insert record error (SQL2005-Window 2003)

    Hi All, When we to inset record into the tables through BCP we are getting following errors. C:\> bcp ACCT.dbo.dtpro out C:\test\dtpro_TA.dat -T-n C:\>bcp ACCT.dbo.Semiaa out C:\test\Semiaa_TA.dat -T -n BCP out works fine only BCP in have problems. Please can you let me know how to resolved this problem. =========== Exp - 1 =========== C:\> bcp ACCT.dbo.dtpro in C:\test\dtpro_TA.dat -T-n Starting copy... SQLState = HY000, NativeError = 0 Error = [Microsoft][SQL Native Client]Unexpected EOF encountered in BCP data-file 0 rows copied. Network packet size (bytes): 4096 Clock Time (ms.) Total : 1 =========== Exp - 2 =========== C:\>bcp ACCT.dbo.Semiaa in C:\test\Semiaa_TA.dat -T -n Starting copy.. ...Show All

©2008 Software Development Network