Click here to Skip to main content
Page 1 of 8,818
Page Size: 10 · 25 · 50


Category filtered by:  General Programming [x]
Question 14 May 2013   license: CPOL
Hi,Is it possible have a variable with the same name that can either be a string or an object that contains a string?For example:public mynameobj{ value: string { get; set; }}public string myName { get; set; }public mynameobj myName { get; set; } // overload somehow,...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
What do PostgreSQL users use to build reports? Is Spotfire TIBCO Software a good package for PostgreSQL?
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Yes indeed, the code throws me an exception:Troubleshooting Exceptions: System.Data.SqlClient.SqlExceptionIn the line:WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof(WorkflowConsoleApplication4.Workflow1));>>>Could not find stored procedure...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
After reading for a while and searching in numerous forums, I finally found my mistake.The field i was selecting in my own DataBase was not an "int", it was a smallint.I had to useConsole.WriteLine(lecteur.GetSqlInt16(0));I found the list of the data types at...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hello everyone.Regarding to my project I have some special task. For instance I have a .cs file MyClass.csnamespace ConsoleApplication{ class MyClass { public int ExecuteExampleLogic(int a,int b) { return a + b; } }}I have to...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hi :)I've been trying to work on a project for my little company.I bought a book to learn and test how SQL works with C# and everything.Working with the database they provide in the book worked just fine.But now, when I try to make my own database following their instructions,...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
I'm not sure that i understand you well, but... check this:DECLARE @tabA TABLE(Mid INT, orgID INT)INSERT INTO @tabA (Mid, orgID)VALUES(1, 1)INSERT INTO @tabA (Mid, orgID)VALUES(2, 2)INSERT INTO @tabA (Mid, orgID)VALUES(3, 2)INSERT INTO @tabA (Mid, orgID)VALUES(4,...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
In all probability, you don't.AFAIK, the only version of windows that works on an ARM based processor is RT - and there is no guarantee that it will work.Start here:...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
To change connection of Entity Framework dynamically, you will have to pass connection string to the constructor of DataContext class as below. string connection = "YourConnectionString";DataContext myDataContext = new DataContext(connection);Quote:And how can I get tho login information...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Table A -------- Mid orgID1 1 2 23 24 4Table B---------id Mid MemberID 1 1 2 2 1 3 3 1 4 4 2 1 5 2 3 6 2 4 7 4 2 8 4 3In above case orgId and MemberID is equivalent or treated as same.If I have...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
https://www.google.com/search?q=How+do+I+install+Windows+on+a+tablet+with+Android+OS[^].
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Use Spy++ to catch the messages going to your windows. This tool will give a you an inside view where the messages are going and will give you insight into how to catch them.
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
ok I solved this problem by below code:code behind: protected List objListItems = new List();And in javaScriptalert('')alert('')
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
This article explains how to print using ASP.NET:http://www.c-sharpcorner.com/uploadfile/rahul4_saxena/printing-in-Asp-Net/[^].Note that the server side only provides printable content, and all the detail of printing selection, printing quality and other options totally happens on the...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
The only place you are casting in that code fragment is when you try to get the value from the database:Console.WriteLine(lecteur.GetInt32(0));Which implies that the value in the first column of your table (or the "Sunfuki" table) is not an integer value.Have a look in SSMS at the table...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
You cannot get a "simple code" in response to such a vague request. It really depends on the detail of what you want to achieve and your service.However, one thing is obvious: your Web Service application provides some interface to the client application. Your console application is no...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
postData = "__VIEWSTATE=" & vState & "&ddlRegion=" & merchantID.Substring(2, 2) & "&txtPassword=%24%24region15%23%23&btnEnter=Enter" & "&__EVENTVALIDATION=" & eventvalidation...
General Programming » Uncategorised Quick Answers » General
Article 14 May 2013   license: CPOL
This article presents the results of timing four directory traversal algorithms.
General Programming » Algorithms & Recipes » Algorithms
C#WindowsWinMobileDevIntermediate
Answer 14 May 2013   license: CPOL
You can intercept messages by installing a Windows Hook. If you need to intercept some messages outside your application, the hook should be global. According to Microsoft documentation, to make it global, you can only install the hook in a native Windows DLL. Please start here:...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
I have an application that connects to a MYSQL database. I use Entity Framework to do all the job.Now When I first Installed, I set up entity, and resulted in a connection string like this:
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Code is :private void Btn_Chercher_Click(object sender, EventArgs e) { try { SqlCommand cmd; SqlConnection ctn; SqlDataReader lecteur; ctn = new SqlConnection(); ...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hi,We are using one .net windows application for viewing the reports.we don't have any issue while opening this application with IE7.Recently our systems are upgraded to windows 7 and IE 8.Please find the example attached screenshot for reference.Here the problem is unable to select required...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
What Richard MacCutchan said.MFC doesn't implement that feature. You'll have to write it, or borrow it from the existing MFC code.You'll also need to overload your CView notifications for UpdateAllWindows and similar methods, as they are dependent on the windows parent/child relationship...
General Programming » Uncategorised Quick Answers » General
C++
Answer 14 May 2013   license: CPOL
Try the OpenGL DLL from http://www.mesa3d.org/[^]If that solves your problem, then you've probably found a bug in Radeon driver.
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Hello Maciej,Could you please share ur mail id.Needs to share some more help from your end.Please do the needful.Regards,Yashnara
General Programming » Uncategorised Quick Answers » General
VB
Question 14 May 2013   license: CPOL
Hello everyone! I would like to start by saying thanks to everyone who takes some time to view this thread and try to help. I have a main window, with a child static control ( for further discussion we shall label it as S1 ). That static control is parent to another static control ( for...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
I have three forms-login, registration and home. Lets say an user A click login button, a new form home opens with textbox where he write something. Similarly another user B login and write. Now i want to display that form with text that was last written by either user A or B. How to do that?
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
The problem is most likely related to your connection string. You can check for that by trying to connect to the databaseSqlConnection conn = new SqlConnection(connString);conn.open();conn.close();If the above code throws an exception then indeed it is your connection string. You can try...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
ok sir thanks..........................................................
General Programming » Uncategorised Quick Answers » General
PHP
Question 14 May 2013   license: CPOL
How do I install Windows on a tablet with Android OS؟
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hello, I have a very important project, which is a monitor in the computer operationsThe project is show if the window has been opened a new operation.I used this code in formLoad event: For Each p In Process.GetProcesses old_list.Items.Add (p.ProcessName) ...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Although your formulation is quite vague, I will try to answer: yes and no.It depends how do you implement sms sending. Using a concrete mobile phone for such task is rarely a good option. Such a device has a narrow throughput. Using a phone can be a starting point but rarely a production...
General Programming » Uncategorised Quick Answers » General
PHP
Answer 14 May 2013   license: CPOL
https://www.google.com/search?q=how+to+develop+a+RMI+with+ehcache[^].
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hello,I would like to ask how to get connection in WorkflowConsoleApplication with database which is created in SQL Server 2005.I am trying with these command line but its do not work.In Program.cs:const string connString = "Initial Catalog=kino;Data...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
You have not specified the programming platform. But according to your formulation, I suppose you use c++. So you can start here: InterSpy - An integrated Windows message trace and filter utility[^]
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
I want to know that is this possible that if i make a web in php which can can sms only not to receive but the source of sending SMS means the API or Bulk sms server is my mobile phone means when i attach my mobile phone in my computer my website will able to send sms and when i remove my mobile...
General Programming » Uncategorised Quick Answers » General
PHP
Answer 14 May 2013   license: CPOL
Hi,Try this:public class Main { public static void main(String[] args) { String initialString = "line1\nline2\nline3"; System.out.println(initialString); System.out.println(); // Get each line of your initialString String[] eachString =...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
how to develop a RMI with ehcache ... with netbeans
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Is it possible to intercept messages which are being sent to a window. I have a 'messages' window running on my PC which receives text strings upon certain events and I would like to intercept these messages with a separate application in case I need to take some action. I can get a HWND for the...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Yes, you are posting in the wrong forum. But to answer your question the reason it is slanted toward Windows development is because the vast majority of users are windows developers. I would have thought that fairly obvious.Perhaps you should try visiting the site as you must have done to...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
H,I am trying to display logged in user and the roles which user is involved.function UserName() : String;varUser : Pchar;i:DWORD;begin i:=1024; user:=StrAlloc(Succ(i)); if GetUserName(User, i) then Result := StrPas(user) else Result := 'unknown';end;With...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
I have solved this!I am so embarrassed that I had to actually post a question like this!The problem was in coordinates passed to the child's CreateWindow() function.I have calculated the positioning of a child static control related to main window's coordinates, so I have passed 300...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
Hi all,I have an app that is using OLE compound storage and for each stream it uses an CArchive that has the boolean m_bForceFlat on FALSE.If I perform a copy on an PowerPoint object and place into my app, it pastes properlly.The interesting thing is that I can save the document once,...
General Programming » Uncategorised Quick Answers » General
OLE
Question 14 May 2013   license: CPOL
I want deploy application on the server side, and client side but i dont know how install the server component on server and component Client on computers client , I like architecture Client server , view and view model and business logic and model on Client side and than install business logic...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
No, the keyword delegate and System.Delegate are not the same at all.You could be confused with the C# alias keywords. For example "int" is an alias for System.Int32. For delegates, this is not the case.Read the documentation on these type and look through all the cases of using the...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
I found one easy code :)var client = new SmtpClient("smtp.gmail.com", 587); client.EnableSsl = true; client.Credentials = new NetworkCredential("jpbritopoker@gmail.com", "**********"); var mail = new MailMessage(); mail.From = new...
General Programming » Uncategorised Quick Answers » General
C#
Answer 14 May 2013   license: CPOL
For the server-side programming such as ASP.NET, prefer using Open XML SDK instead of Office Interop. Look at this Microsoft article:http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^].Use Open XML SDK:...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
The best idea so far is the Solution 4.The right solution for System.Windows.Forms is: create a custom control which behaves like a button and implement rotation property. If you want to rotate to an arbitrary angle, you should also set the property...
General Programming » Uncategorised Quick Answers » General
Answer 14 May 2013   license: CPOL
Suppose the .mdf and .ldf are specifically the AdventureWorks2008R2:EXEC sp_attach_db @dbname = N'AdventureWorks2008R2', @filename1 = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Data\AdventureWorks2008R2_Data.mdf', @filename2 = N'C:\Program...
General Programming » Uncategorised Quick Answers » General
Question 14 May 2013   license: CPOL
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package neethu;/** * * @author neethu *///I'm trying to send an email using Java:import java.util.*;import javax.mail.*;import javax.mail.internet.*;import...
General Programming » Uncategorised Quick Answers » General

Page 1 of 8,818
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid