o
k
q
u
e
s
t
i
o
n
s
.
c
o
m

[2005] compiling -

Hi!
ppl i get this error while compiling.


A project with an Output type of class library cannot be started directly
In orfder to debug this project,add an executable to this solution which references the library project. set the executable project as the startup project



this is my code
Code:
Imports System

Public Structure Mohit
    Public age%, sex%
    Public Sub New(ByVal a%, ByVal sex%)
        age = a
        sex = sex

    End Sub
End Structure
Public Class Class1
    Public Shared Sub main()
        Dim amohit As New Mohit(22, 1)
        system.Console.WriteLine("the age is " & amohit.age)
        system.Console.Readline()

    End Sub
End Class
how i created the project??

File--->New---->Project--->class library(this is one the listed templates).

 

[2005] compiling for different processors -
Hi, i have an issue with 2005 Express because i use a 64-bit OS. It wants to default to compiling for a 64-bit processor, but that is incompatible with many of the libraries such as the ones that come with the dx9 sdk. None of the samples will compile unless you manually edit the xml


Compiling Again -
I'd like to know what's the difference between compiling to Native Code and to P-Code. I've compile an app with both and with P-Code result much faster compiling and reduced size. I've test both exe's and the results aparently are the same. Thanx...


[2005] Compiling a DLL without compiling associated Apps -
Is it possible to make changes to a DLL and recompile it without having to go into every program that calls this DLL and recompile the program as well? If so, how do I do this? Thanks,


Compiling a program with .net 1.1 Using Vb express 2005 -
I just made a database app at work to update records in a database. When I compile the program it compiles with .net 2.0 references. Only problem is that we would have to update 40+ computers to .net 2.0. The app is extremely simple and I wouldn't lose anything by compiling with .ne


compiling but not compiling -
can anyone help with this one? i've had a collection of projects for a while that i've never had any difficulty compiling and making the exe for. in the last couple of days when you try and create the exe it creates a file the same size as the valid exe but won't run. if you chec


Compiling problem on VB -
For Vb compiling, on component I selected ADO Data COntrol 6.0, Common Dialog Control 6.0, Rich Textbox Control 6.0, Windows Common Controls 6.0 then using Vb application wizard to make application from northwind database, I follow the suggestion on screen till finish. On compiling , h


compiling ... -
in my c++ class the way we test our programs are by first building it and then compiling it and then running it ... those are the steps for it to run ... but how do we really compile it - you know make it an *.exe ...


compiling and compiling -
is it possible to compile vb code from within a vb program? I'm working on something that if I could do this would make things a lot easier. thanks mael


Compiling, is vb smart -
I need to know a little thing from compiling. If I put in my programm thousands of functions and subs wich will never be used, will vb compile them into the exe??? I hope (and think) not, but I need to be sure, cause the vb compiler isn't the smartest around. Only answer is you are


[2005] Compiling code to distribute -
I'm using Microsoft Visual Basic 2005 Express Edition and I would like to know if I can get just an exe of my program. I tried publishing it and that works but I don't want an installer for the program. I just want an exe which I can move, copy, and paste onto any computer I want.


Problem compiling -
I'm switching to C & C++ as we speak but I'm having trouble compiling my source... It gives me the following error: iostream: No such file or directory. I'm running Windows Vista and I have a feeling it has something to do with that... my compiler is Dev-C++.I feel kinda stup


Compiling asm progs [resolved] -
I have the a86 compiler. I compiling from DOS with A86 HelloWorld.asm and i keep getting "Sorry no file". As there any command line switches i should be declaring or do i have to set my autoexec.bat in anyway? Thanks Guys.


[2005] Converting To MAC -
Is there any way of compiling a VB Express application so that it will run on a Mac ? (Without the Mac having to run a windows emulation program).


TECHNICAL / COMPILING QUESTION -
When I try to make the .exe for my application which is almost 1 MEG in size), VB stops responding during the compiling process! (I have to use Ctrl+Alt+Del to break it) When I try the process for smaller applications everything goes fine. Any suggestions?


Compiling breaks my program! -
Hi all, So frustrating! Anyone know of some reasons why a program will work as a vbp, but not after compiling? I don't even know where to start debugging this one... FYI, I'm using VB 6.0 with SP 5, and the program has a treeview and some graphics APIs... Thanks in advance


General Compiling problems -
Hello, well thanks in advance for all the help everyone has given me sofar, but now i have yet another question. I am new to c/c++, and i am having some problems with compiling. For example, in visual c++ 6, i can never get any of my applications that i compile to run i dos. They al


Error in Visual Basic. -
Hi all, I made a project and compiling doesn't work. C2.exe always fills up the RAM and crashes. Of course the program works when starting it within VB. And C2 works when compiling any other project. Any ideas?


p-code -
what's the difference between compiling to p-code and compiling to native-code (optimize for fast code etc.)??


C++ compiling too big. -
Well I have both MSVC++ 6 and 2005 and when I compile it seems like its adding a LOT of useless code. I was wondering where the option was that I could change this? because 2 of the same programs 1 in masm32 and 1 in C++ doing the same thing being 42kb difference in size is just ridic


Invalid Format after Compiling! -
After compiling my project (successfully I might add), the exe doesn't run. It gives me an invalid format error and tells me that the file is corrupt! It runs great when I'm designing, it just screws up when I compile... Any help would be great...


[2005] No updates shown with changes -
This is too wierd. I am using VS Studio 2005. I am making updates to my forms and my code. When I debug or even publish the project, none of the updates are taking. I get the same output that I was getting hours ago. It seems like it is compiling my code from this morning or


problem when I build the .exe -
I am using Visual C++ 6.0 so when I build the .exe I get this error Deleting intermediate files and output files for project 'faffy - Win32 Debug'. --------------------Configuration: faffy - Win32 Debug-------------------- Compiling resources... Compiling... StdAfx.cpp Compiling...


modify crystal report without compiling and making setup again. -
hi, is it good to use in-built crystal report with .net. its build with application . so for further modification is tedious after compiling. For any minor changes also we need to compile it again. any way to modify report alone and place in the location without compilation


Error Compiling Project, please Help -
I am Compiling a Group Project and i keep getting the an Error, and in the log it says: Line 188: Cannot load control SpeechListBox. ControlSpeechlistbox is ovbiously a listbox, I cannot figure out how to fix this, does anyone have any ideas? And how can i tell what line is


Urgent - SP5 - component error when compiling app -
I just applied SP5 and now I'm getting an error when compiling the ActiveX DLL I was working on previously. This app has been compiling properly for the past number of months but now I get a "Component not properly registered" error when I compile it. The error show up


Is source code safe after compiling -
(O.K. might be quite a newbie question to ask, but I am one after all.) Now is it? I mean after compiling the stuff, is it possible to 'decompile' it to get readable source code again? I wonder since I am working on an app that will incorporate some formulae that definitely nobo


writing code in DLLs***resloved*** -
I have a program that after compiling get's up to 2.5 MB now I wanna add some functions wich I may want to change with the time. now instead of compiling the whole program an othe time I thought of making a DLL wich includes this functions but I have no Idea how to make it. please he


Compiling a VB project -
Hello all! I have this small VB project that uses Excel (Office 2003) commands but I have Office 2002 on my pc. Obviously I get error when compiling because I use methods not recognized by Excel 2002. Is there any way I can force the execute to be created? Any other way around th


RESOLVED: Compiling Class Module To .dll -
i have a little graphics library for picture boxes made here into a class module, and i want to compile it to a dll so i can make it a reference and call it just like i would the class module. im having a problem compiling it to a dll though, it says no creatable public component detec


Puzzling question on Matching up dates and accounting for double entries -
Hi there, I have two worksheets in one excel file. The First Worksheet is a complete worksheet, and the second is to update the first. First Sheet: 01/01/2005 .....more data..... 02/01/2005 03/01/2005 04/01/2005 05/01/2005 06/01/2005 07/01/2005 08/01/2005 09/01/2005 10/


New computer build brings new running problems -
Howdy all! Just recently built a new rig. Installed VS2K3 and VS2K5 on it. My web applications are compiling and running no problem, however, after compiling a windows application created in VB.NET through VS2K3, and then trying to execute the executable (it's pretty much a barebon


[2005] Some questions about usercontrol/class libraries deployment -
I've been wondering a few things for the last days, but couldn't find anything that exactly suits my questions. These are the questions off the top of my head: - When generating a solution, without publishing it, can I define the location of my custom libraries to be different th


[2005] Halt on error during build -
Is there an option that I am missing that during compile it will stop compiling on the first error? I have a solution with over 20+ projects in it and if one errors out due to dependancies they all start erroring out... thus a domino affect. Thanks for the help, Eroc


messages while compiling VB6 & crystal reports10 -
hi all, While compiling the project, developed using vb6 and having two crystal report forms, 'update links' dialog boxes of crystal report are popping up 4 times. May I know y this is happening.. I have placed the forms as attachment. When i press the 'link' button on update form it


Program freezes on error -
I seem to have a serious problem. Visual Basic and the program I'm compiling will hang when an error occurs. I know this is not because of the error as i have had that error before and the program will hang no matter what error i get. It hangs when i click to end or stop the compiling.


[2005] Library Problems -
Hello, I'm working on a vb.net project which works with a C# Library I compiled myself. Today suddenly while debugging my code I got an exception and Visual studio (2005) opened a c# class file from said library (Which, let me tell you, had worked fine before as a c# Project) tel


compiler problems - VS6 -
i get this error, i have just reinstalled vs6, before it worked!!!! Compiling resources... Compiling... nb.cpp Linking... nb.obj : error LNK2001: unresolved external symbol __imp__InitCommonControls@0 Debug/iuiuyiuy.exe : fatal error LNK1120: 1 unresolved externals Error execu


[2005] compiling aspx.vb files -
in vs.net 2003 , all vb files are compiled to dll . does web developer express does so ? if not , how can i compile my aspx.vb files.


[2005] Doubt about own controls -
OK, I've made my own control using VB.Net... but now I'm having doubts... how the hell can I use it on a form after adding it to a project? I've realized how to add it after compiling it, but I'd like to know how to use it when I add the control source to another project, that way


Gudiance please: Why use apartment threaded model when compiling a UserControl -
What is the advantage/disadvantage to selecting apartment threaded model versus single thread model from project properties when compiling a User Control? I'm not sure I understand threads. (Actually, I'm pretty sure I don't). From what I gather, threads are the channels through