Hello,
I have a function that has several outputs, all of which "native", i.e. integers and strings. For example, let's say I have a function that analyzes a string, and finds both the number of words and the average length of a word.
In C/C++ I would use @ to pass 2 parameters to the function. In Python I'm not sure what's the right ...
I have a database with three tables: userid_tbl, need_tbl, have_tbl
create table userid_tbl
(user_id varchar2(15) not null primary key);
create table need_tbl
(user_id varchar2(15) not null,
have_item varchar2(100) not null,
foreign key (user_id) references userid_tbl (user_id)
);
create table have_tbl
(user_id varchar2(15) not null,...
I'm compiling from csc.exe (well, CruiseControl is...), and I need to reference a DLL in the GAC. I do not have the correct version of this DLL as a simple file, but there is a correct version in the GAC.
However, you can't reference assemblies in the GAC with csc -- you have to have the path to the actual file.
I've found some refere...
What are some options for keeping a persistent reference to two applications even if one crashes so that when re-opening the first one, it can get a reference to the second one and call methods on it.
The situation is as follows:
App1 (a web browser plugin) instantiates App2 via a object reference in an HTML page and gets a reference ...
Hi, does anyone know why this gives a compiler error ? I tried VS 2005 and Codewarrior:
class Parent {
protected:
int m_Var;
public:
Parent() : m_Var(0) {}
virtual ~Parent() {}
void PubFunc();
};
class Child : public Parent {
protected:
bool m_Bool;
public:
Child() : m_Bool(false) {}
...
How do I catch wrong array reference in C++? Why doesn't the following code work:
#include <exception>
int * problemNum = new int;
int (* p [100])() = {problem1, problem2, problem3};
...
try {
cout << (*p[*problemNum-1])();
}
catch (exception){
cout << "No such problem";
}
My compiler...
Hi, I have been working on a project and trying to find the source of a large slowdown in execution time and have narrowed it down to a single method which I have managed to optimise out of the logic. The problem is that my solution involves using a reference which makes another section of the code run quite slowly... The question I'd li...
Hope I'm asking this correctly:
I have a project
Projects.Client
I have my class library ( infrastructure stuff I use all the time )
Library
Assuming these are both projects, how can I do this from a class in the "Projects.Client"
using Library;
public class xxx
{
public void DoSomething()
{
Library.SomeDll.DoS...
Is it possible in managed code to get a reference to an already running process (COM+ component) and call methods on it? Instead of instantiating a new object, is there a way to point to an already running instance of a COM object so that the .net code has a reference to the running process just as if it had instantiated it - to call me...
Hi,
I am looking for a more elegant way to create a hash that contains the list I have read in from my configuration file. Here is my code:
read_config($config_file => my %config);
my $extension_list_reference = $config{extensions}{ext};
my @ext;
# Store each item of the list into an array
for my $i ( 0 .. (@$extension_list_refere...
I'm looking for a SAS pocket reference that provides listings of SAS procedures/statements. I don't want detailed explanations of each procedure - just a list of the procedures and maybe a short description to jog one's memory. A sublist of the statements associated with each procedure would be helpful. Something along the lines of the O...
I'm trying to compile a managed cpp application from the command line. Suppose my cpp application references the .NET 2.5 framework's "System.dll". I can compile like this, without problems:
cl /clr /FU"System.dll" main.cpp
The application then works as expected. If, however, I try to reference the .NET 3.5 framework's "System.core...
I don't use SQL Server Cursors often but when I do, I always have to look up the syntax and options.
So I wanted to ask, what is the best SQL Server Cursor reference on the web?.
I'm looking for a reference that explains all of the (major?) options (I.E. FAST_FORWARD) and also shows quick snippets of how to use it. (I.E. How to impl...
Problems started after upgrading from VWD2005 to VWD2008.
In VWD2008 the App_Code does not exist any more.
How can i add a reference to a class that existed in the App_Code directory of VWD2005?
...
Hello,
I have a function that is doing some calculations and then passes some properties into another subroutine like so:
sub get_result {
my $id = 1;
my %diet = ( result => 28,
verdict => 'EAT MORE FRUIT DUDE...'
);
my %iq = ( result => 193,
verdict => 'Profess...
Good afternoon,
we're having a semi-weird problem here with a legacy activex dll that needs to be used in a .net project and strangely it works perfectly fine (adding it as a reference and all its functionality) on one developer's machine, but on no other ones, the build-server complains about a faulty reference etc etc.
Whenever e.g. ...
I am trying to find a reference for the Video Components that come with flash. I have added them to a MovieClip and I want to control them, but I cannot find any documentation on these classes.
PlayButton, PauseButton, SeekBar, VolumeBar, MuteButton, etc.
These are components that I assume are part of fl.video, but there is no referen...
I have written a program in VB.NET 2008 Express that references a .NET managed dll. I simply added a reference to the dll to the project. I then 'Imports' the dll at the beginning of the program and then can use it. Everything works fine when I am running the program in debug mode (and it uses the dll as intended), but as soon as I go to...
I am a experimenting with instantobjects. I have two simple classes tband and tcountry both are defined as stored. tband has a properts named tcountry referencing the tcountry class/table. (country is the lookup table). When creating a new band I want the user to be able to select the country in the form from a list/combo and then save t...
Let's say I have an object Employee_Storage that contains a database connection data member. Should this data member be stored as a pointer or as a reference?
If I store it as a reference, I
don't have to do any NULL
checking. (Just how important is NULL checking anyway?)
If I store it as a pointer, it's
easier to setup E...