RSS

Visual Studio 2005 Interview Questions and Answers 


 

Visual Studio 2005 Interview Questions and Answers
Ok so this is basically what i need.

i need a list control.
there should be 3 columns, in 1 column comboboxes, and in the others there should be just static text.

so it basically should be like the image shown here: http://www.codejock.com/public/assets/im...
except there should be comboboxes instead of checkboxes

heres some details of my project:

* Using Visual Studio 2005
* This is a MFC application

Can anyone help me please? This should be a really simple task but i cant seem to do it. ive seen like 100s of apps having the same thing i need.

plz, anyone help!!
How can i develop an Editor that will be intelligent enough to recognize my custom syntax and gives real-time code outlining, prompting, and keyword auto-completion?

In Visual Studio 2005 + How to design it.

Any help will be appreciated a lot.
Thanks in advance....
I do this in a part of my C++ program: int* pTemp=new int
[size()];
(size() is an unsigned int value, it shows the size of an array)

But when I run it, I get this message:

"heap corruption detected: after normal block (#115) at 0x003A5490. crt detected that the application wrote to memory after end of heap buffer."

and when I'm debugging it:

"there is no source code available for the current location."

What can I do?

Domonkos

(It's C++ in Microsoft Visual Studio 2005)
Anyone knows how I can use the built in control named "AdRotator" in visual studio 2005 to play flash (.swf) files ?
Thnx !
I'd like to have automatic build increment for my application. Unfortunately VS2005 does not have such feature (modifying AssemblyInfo.vb or AssemblyInfo.cs is not working good enough for me). On the net i found how it is possible to do using Macros, BUT i dont like this idea as well (some known problems).
So, my question is if you guys know any software that can integrate with Visual Studio 2005 and accomplish this task?
For example, i build my application for the first time and it modifies version from 1.0.0.0 to 1.0.0.1 and then 1.0.0.2 as so on.
Thanks.
im writing a program and C using MS Visual Studio 2005 Pro Ed.

i have this function protoype which i have under "routines.h" as:

int tokenize(char *token[ ], int max_tokens, char *str);

and i have the actual function in "routines.cpp" as:

#include "routines.h"
#include <stdio.h>
#include <string.h>

int tokenize(char token[ ], int max_tokens, char *str)
{
printf("%s\n%s\n\n%s\n",
"The string to be tokenized is:", token,
"The tokens are:" );

str = strtok (token, " ");

while (str != NULL) {
printf("%s\n", str);
str = strtok(NULL, " ");
}
return 0;
}
--------------------------------------...

okay, so how do i call this function from "main.cpp"?

i want to say that its: tokenize(token[ ], max_tokens, str)

but i know its wrong, can anyone help me? im horrible at calling. thanks in advance.
I'm using Visual Studio 2005 in console mode. I want to make a little crapy games that when i press the arrow keys a character moves around the screen. Is there a command like "std::cin>>veriable;" exept it doesn't stop the flow of execution. It just scans if a key has been pressed or not. Simmiler to INKEY$ when using qbasic. Also any other tips on how i can make this charcter move around would be helpful. thanx
I need help getting my program to compile.

...
void rotate(Point& p, double angle)
{
double new_x = (((p.get_x()*cos(angle))
+(p.get_y()*sin(angle))));
double new_y = (((-(p.get_x())*sin(angle))
+(p.get_y()*cos(angle))));
double dx = new_x- p.get_x();
double dy = new_y- p.get_y();
p.move(dx,dy);
}
...
int main()
{

cout<< "The original point p (5,5) rotated 5 times by 10 degrees then scaled 5 times by .95 is:""\n";
Point p(5,5);
double angle = 10;
double scale = .95;
int rotation_count = 0;
int scale_count = 0;


while (rotation_count<5)
{
rotate(p, angle);

cout<< "The point is now " << p.get_x << "," << p.get_x << "\n";
rotation_count++;
}
...
This is the error I recieve
Error 1 error C3867: 'Point::get_x': function call missing argument list; use '&Point::get_x' to create a pointer to member d:\my documents\visual studio 2005\projects\a3q2\a3q2\assgn3q2.cpp 52

line 52 : cout<< "The point is now " << p.get_x << "," << p.get_x << "\n"

Here's the question I asked...

How do I add an installer with VB/VS2005?

How do I add ServiceInstaller1 and ServiceProcessInstaller1 to a VB application in Visual Studio 2005?

I've added an installer to my file and I did this before years ago...

I can not figure out how to add those two objects to the designer though, does anyone know? I have not found a place where I can click Add -> Installer, and I'm pulling my hair out here!

THanks

I was doing this program on Visual Studio 2005 where the program converts C to F and vise versa but after debugging it, it doesnt give the expected result. Could someone tell me what is wrong with my code???


#include <iostream>
#include <iomanip>

using namespace::std;
using std::fixed;

int main()
{
int conversionType = 0;
double temp = 0.0;
double result = 0.0;

cout << "Enter -1 (F to C) or 2 (C to F): ";
cin >> conversionType;
cout << "Enter temperature: ";
cin >> temp;

if (conversionType == '-1')
{
result = (temp - 32) * 5 / 9 ;
}
else if (conversionType == '2')
{
result = temp * 9/5 + 32;

} //end if

cout << "Result: " << result << endl;

return 0;
} //end of main function

--------------------------------------...
Hi,

At present I'm using Professional Windows XP Operating System(service pack 4) and I've OPC Clientx Software version of 1.5.0.4 demo version. I need to run one Cobble tufting machine automation project by using the above requirement in Microsoft Visual studio 2005 (C# ,windows Application) environment. But when I started to run the application the following errors are occuring....

OPC Clientx version 1.5.0.39,runtime version v1.0.3705 this is the software version I needed that I think. Could you pls check the below errors and send the details of appropriate OPC clientx software demo version.

Check the below Errors
Error 24 Exception occurred creating type 'Infragistics.Win.UltraWinGrid.UltraDrop... Infragistics2.Win.UltraWinGrid.v5.3, Version=5.3.20053.73, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' System.ComponentModel.LicenseException: Unable to locate license assembly. C:\Documents and Settings\raviv\Desktop\cobble\Cobble 1.2 Sour
Hi. I am a SQL newbie. I am using C# and Visual Studio 2005.
I have created a table and then I try to add a value to the table. It works, my coding works, becuase in the program I call the table again and it shows the new value, BUT, the moment when I close my program I lose those changes.

Why is this?

Here is some of my code.

SqlConnection myConnection = new SqlConnection();
myConnection.ConnectionString = Properties.Settings.Default.Setting;

myConnection.Open();
SqlCommand myCommand = new SqlCommand();
myCommand.Connection = myConnection;
myCommand.CommandText = ("UPDATE Stock SET Stock_Quan = " + newFigure +
" WHERE StockName = '" + stockBox.Text + "';");

myCommand.ExecuteNonQuery();

myConnection.Close();

ANY help will be so greatly appreciated. THANK YOU.
I created a console application called FastFood in visual studio 2005. My goal here is to create burgers and consume burgers in a randomized way. It will run like this for 20 times.


Here's my code:


using System;
using System.Collections.Generic;
using System.Text;


namespace FastFood
{

interface Actor

{

void act();}

}



class TooManyPeopleException : Exception


{

public TooManyPeopleException(string message) : base
(message)

{

}


}





class BurgerConsumingException : Exception

{

BurgerConsumingException(string warning) : base(warning)

{

}


class Person : Actor

{
public string name;


public Person(string name)

{

this.name = name;

}



public String getName()
{

return this.name;

}


public void act()

{

Console.WriteLine("This should not appear in the program.");

}

}


class Worker : Person

{

McDonalds job;


public Worker(string name, McDonalds job): base(name)

{

this.name = name;
this.job = job;
}


new public void act()
{

job.Create();

}


class Consumer : Person

{

McDonalds restaurant;

public Consumer(string name, McDonalds restaurant): base(name)
{

this.name = name;
this.restaurant = restaurant;

}

new public void act()
{

try

{

restaurant.Consume();

}

catch(BurgerConsumingException)
{

Console.WriteLine("no more burgers left.");

}

}

}

class McDonalds
{

private int numBurgers = 35;
public List<Person> Customers;
private const int maxSize = 20;
private static Random randomGenerator = new Random();

public McDonalds()
{

Customers = new List<Person>();
Customers.ToString();

}



public void add(Person p)
{

if (Customers.Count <= McDonalds.maxSize)

{

Customers.Add(p);

}

else

{

try
{

throw new TooManyPeopleException("too many people");

}

catch (TooManyPeopleException v)

{

Console.WriteLine("Too many people in Mcdonalds");

}

}



}

public void remove(Person p)
{

}

public void Consume()
{

numBurgers--;

}


public void Create()
{

numBurgers++;

}

public Person getRandomPerson()
{

int i = randomGenerator.Next(Customers.Count+1);
Console.WriteLine("Number generated: " + i);
Person p = (Person) this.Customers[i];
Console.WriteLine(p.getName());
return p;

}

}

}




class Program
{


static void Main(string[] args)
{

Program prog = new Program();
prog.DoThis();

}

public void DoThis()
{

McDonalds mcdo = new McDonalds();

Worker emp1 = new Worker("emp1", mcdo);
Worker emp2 = new Worker("emp1", mcdo);
Worker emp3 = new Worker("emp3", mcdo);
Worker emp4 = new Worker("emp4", mcdo);
Worker emp5 = new Worker("emp5", mcdo);
Consumer buyer = new Consumer("buyer1", mcdo);
Consumer buyer1 = new Consumer("buyer2", mcdo);
Consumer buyer2 = new Consumer("buyer3", mcdo);
Consumer buyer3 = new Consumer("buyer4", mcdo);
Consumer buyer4 = new Consumer("buyer5", mcdo);
Consumer buyer5 = new Consumer("buyer6", mcdo);

mcdo.add(emp1);
mcdo.add(emp2);
mcdo.add(emp3);
mcdo.add(emp4);
mcdo.add(emp5);
mcdo.add(buyer);
mcdo.add(buyer1);
mcdo.add(buyer2);
mcdo.add(buyer3);
mcdo.add(buyer4);
mcdo.add9buyer5);


//runs simulation 20 times
for (int a = 1; a <= 20; a++)
{

Program program = new Program();
program.simulation();

}

}
public void simulation()
{

McDonalds mcdo = new McDonalds();

//Get a random person from Mcdo
//And execute act
//And see how many times you can catch the excpetion when there are no more burgers

mcdo.getRandomPerson();
mcdo.Consume()
mcdo.Create();

Console.ReadKey();

}

}



now my problem is this: whenever I try to run my program, it wont debug and the line "Person p = (Person)this.Cusotmers[i];" will be highlighted in yellow with the warning "ArgumentOutOfRangeException was unhandled."
How can I run it the way its supposed to with putting an exception? I want to see how long it will run the simulation. I'm just a newbie programmer(only three months in programming). Please help!
i've tried the http://support.businessobjects.com/merge...
but all it does is open to this link http://www.businessobjects.com/support/d...
which is only a circular reference to https://www.sdn.sap.com/irj/sdn
which reference back to the first link.
I need the module to deploy my application using crystal report 10 which is embedded with my visual studio 2005.
Any help is greatly appreciated, please pm me
thanks :)
hiiiii i need to make real world project in asp.net. but as m a beginner dunno much.can any one give me??
or temme how to start n from where.i ve visual studio 2005.where shud i make my web pages n how shud i connect em??gime example codings..
or plz sggest some easy websites.. can i go for database management (in asp ony)its urgent
plz help
RSS
13456748Showing 61 to 75 of 719

Top Tags

Sorry - no Tags found for specified category