|
Make sure you have all the DLLs needed on your machine, and then make sure they are all referenced.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
could u tell me how i can solve this with more details thanks
|
|
|
|
|
Goto www.google.com.
Search for Oledbconnector drivers. Look for the ones from microsoft.
Download them.
Add them as a reference.
If that doesn't work then the way you explain the problem needs to be described better.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I am using C# to set parameters and calling a .rdl report (SQL Reporting services) in a report viewer object(in C#).
The data for the report is being generated by stored procedures in the backend.
My doubt is
' How do we post a message when the report does not display any data' ?
Can this be done after the report is generated or in any other way' ..
Thank you,
Nit
|
|
|
|
|
Check to see if any data is being taken from the query and if not display something saying just that.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
This method returns the string twice! How?
public string UniversalRegEx(string szMyRegEx, string szWhatFor, string szWhatThrough)
{
//The universal RegEx
//Set it (Query, What it will put as a heading)
Regex rxFind = new Regex((szMyRegEx), RegexOptions.IgnoreCase);
MatchCollection matches = rxFind.Matches(szWhatThrough);
foreach(Match m in matches)
{
szInformation = (szWhatFor + ": " + m.Groups["mmatch"]);
}
return szInformation;
}
I am stuck on this. I use this method and it works, but when I have it search for Residence, it returns szInformation twice some how. Is there a ghost in the code?
Thanks for your time.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
A function can not return more than a single value. What exactly do you mean when you say that it returns something twice?
---
b { font-weight: normal; }
|
|
|
|
|
That is what I thought but when I run the function it returns two different strings on one call. I have been running through my code over and over to see if it is called more than once and it isn't.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
ExpertComing wrote: That is what I thought but when I run the function it returns two different strings on one call. I have been running through my code over and over to see if it is called more than once and it isn't.
I still fail to understand how it can be. Can you create a simple application (e.g., a Main() only, with a Console.WriteLine() call) showing your problem?
I don't see dead pixels anymore...
Yes, even I am blogging now!
|
|
|
|
|
ExpertComing wrote: That is what I thought but when I run the function it returns two different strings on one call.
No, it doesn't. A method can only have one return value. Period. There is no exception. Ever.
Why do you think that it returns two strings?
---
b { font-weight: normal; }
|
|
|
|
|
what do you mean by returning twice. is it that when u call function like
string result = UniversalRegEx(...);
result contains "Returned ValueReturned Value" rather than "Returned Value"???
Regards
Shajeel
|
|
|
|
|
No, what I do is call the function like this to display the results.
StringRegEx(">Profession <mmatch>[a-z]+)", "Vocation", szCharacterProfile))
It outputs:
Vocation: Knight
Vocation: Knight
Why???!!!
If you wish to help me and look at the live code, is there a way to transfer e-mail addresses in a way that is non-public. That is the only way I'll share my live code.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
you gave the code for function UniversalRegEx() and here you are calling StringRegEx()???
where are you writing the output. is it using console.writeline() or some textbox.
as for function returning twice, why dont you just add break point on the function return and check how many times it reaches there?
Regards
Shajeel
|
|
|
|
|
You must skip the first entry in the groups - it contains everything matched (as if there was a paranthesis around the entire expression).
-- modified at 2:44 Friday 4th August, 2006
|
|
|
|
|
ExpertComing wrote: foreach(Match m in matches)
{
szInformation = (szWhatFor + ": " + m.Groups["mmatch"]);
}
Why would you step through all the matches and not accumulate their contents ? Why not just ask for the last one in the group, it's the only one you're going to get.
You need to post the calling code. This code cannot return twice, no code can. You must be calling it twice. However, I do note that your return value is not created within the call, perhaps it's being a member variable is somehow contributing to the problem.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
As for the reason that I am running through a loop, reused code. Who doesn't do it. Adn the only reason it is still a loop is because I haven't gone and did the efficiency reprogramming yet, I believe in functionality first.
And as far as code returning twice I don't see how it can either, code by definition should, if given the same information in, give the same result, so only one result. I am only calling the code once.
What do you mean since it is a member variable though, that is an interesting path.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
ExpertComing wrote: As for the reason that I am running through a loop, reused code.
Do you mean that you copied code you used before? That is not reusing code, that is recycling code.
Adn the only reason it is still a loop is because I haven't gone and did the efficiency reprogramming yet, I believe in functionality first.
A loop without a purpose doesn't add anything to functionality, it only adds compexity and confusion.
---
b { font-weight: normal; }
|
|
|
|
|
RegexOptions.ExplicitCapture
|
|
|
|
|
I have a problem setting a class constant in my C# assembly to the value of a constant in a managed C++ class. The compiler does not seem to recognise that the managed C++ class constant is constant. The error message is shown below:
#error = "The expression being assigned to 'MyAssembly.SMyFooBar.bahName' must be constant
What Have I done wrong here?
I am writing in Visual Studio 2003 on WinXP SP2 with .Net Framework V2.0.50727
The reason for this attempt is that the majority of our code is unmanaged c++, which uses a glabal header file to set values through a number of
projects.
I wish to include this header in our various new C# projects, and thus avoid double maintenance. If the header file changes, all that is needed is a code recompile, at least in theory.
To do this I wrapped the header file inside a managed c++ class to create a dll. I then included this dll as a reference in my C# project so that I
could use it to initialise some c# constants, thus:
-- unmanaged C++ header
// CPPHeader.h
#ifndef CPPHeader_defined_hpp
#define CPPHeader_defined_hpp
#define MAX_FOOBARS 3
#define FOOBAR_NAME "Foo Bar"
#endif // CPPHeader_defined_hpp
---------------------
-- managed C++ class
//MyManagedClass.h compiled to a DLL
#pragma once
#include "CPPheader.h"
using namespace System;
public __gc class SMyManagedClass
{
public:
static const int maxFooBars = MAX_FOOBARS;
static const String* FooBarName = FOOBAR_NAME;
};
--------------------------
-- C# assembly
//MyFooBarAsembly.cs
using system;
using SMyManagedClass;
namespace MyAssembly
{
public class SMyFooBar
{
public const int maxBahs = SMyManagedClass.SMyManagedClass.maxFooBars;
public const string bahName = SMyManagedClass.SMyManagedClass.FooBarName;
}
}
OrcBighter2
|
|
|
|
|
You probably need to use readonly. There are differences in lookup rules that may exclude this from working.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Currently I'm able to create a combox box in ListView in Windows Form (PC application) with mouse up event in ListView, by using C#.
But is it possible to do the samething for Pocket PC Application? I'm unable to find the mouse up event in ListView. I've do lot of searching in ineternet but stilll unable to find a related article.
|
|
|
|
|
Hi friends;
I need exactly free db for .net, I will use c# for project and project will be commercial package program. So I dont struggle with server system.I prefer ms access. Is there free database like ms access?
Thanks
I need your answers
|
|
|
|
|
|
Hi;
Thanks for quick response. Can I use firebird like access?
I mean If I develop a program with firebird database and If I wanna run this program on other computer do have to setup firebird?
Did I explain?
I need like access system, I wish that I explained
I wait your answer
Thanks
Best Regards
|
|
|
|
|
tyleray wrote: Can I use firebird like access?
I mean If I develop a program with firebird database and If I wanna run this program on other computer do have to setup firebird?
The docs are always a good place to start..
Read this[^]
|
|
|
|