Is there a simpler acceptable syntax for
With New Class
In VB.NET you can use Call
Call (New Class).Method
but this syntax is not acceptable in VB6 (with or without the () at the
FYI I am looking for VB6 and VB.NET answers, if they are different.
(Using Call in VB.NET is "acceptable", I'm just wondering if there is an
alternative syntax I haven't thought of.)
BTW Note that if you define an "identity" function:
Function Identity(ByVal C As Class) As Class
Identity = C
(And...Can I Install SQL Express on SBS 2008 Std.?
I have a standard version of SBS 2008 (64-bit). SQL is installed by default
for SBSMonitoring and other services. I'd like to be able to use this copy
of SQL to host one of my own tables. I need to be able to connect to the
database from one of my desktops in my network. When creating a System DSN
to make the connection it returns server not found or permission denied. I'm
using windows authentication for the DNS. I am able to manage the SQL
instance when logged into the server itself but not remotely from the
Is not possible or am I doing something wrong?
...Int to CString conversion
Is there a simple function that can convert from an int to CString?
"Tony" <firstname.lastname@example.org> wrote in message
> Is there a simple function that can convert from an int to CString?
"Bill Thompson" <email@example.com> wrote in message
> int SomeIntegerValueThatYouWantToConvert;
> CString temp;
> temp.Format(&q...pass CString?
I want to pass an array of UINT to another window through postmessage. in
first winodw, dump those data to the string using string.Format. In the next
window, I have to calulate the length and use atoi to get the data. Any
other simpler way of doing this? I got to use the CString object to pass
around, cause sometimes, I have to pass string.
"Patrick Zou" <patrick_zou@no_spam_hotmail.com> wrote in message
> I want to pass an array of UINT to another window through postmessage. in
> first winodw, dump those d...Random replacement of data in a cell with a #####
I've opened up some saved spread sheets and a few random cells display #####
instead of the data that was entered. When placing the cursor over the cell
the correct data shows in a balloon. Deleting the ###### and attempting to
replace the data doesn't work, the ###### just reappears. How can I fix
Just widen the columns where the #####'s appear
"hondo" <firstname.lastname@example.org> wrote in message
> I've opened up some saved spread she...ReadBinHex method
I'm trying to read binary information from an XMLTextReader and to save
it to a .jpg file, using a FileStream. I don't want to use an
XmlDocument because of performance reasons. But the only example code I
could find is:
byte binhex = new byte;
binhexlen = reader.ReadBinHex(binhex, 0, 50);
for (int i=0; i < binhexlen; i++) Console.Write(binhex[i]);
} while (reader.Name == "BinHex");
Is there any way to discover the length of the binary data on
beforehand? Or can someone give me a hint on how to complete my code
her...Should my properties be a method or set by a method
I am in the process of building a VB6 class that represents the Windows
startbutton. Currently it has two properties, one to set the caption of the
button and one to enable or disable it. Currently setting either property
sets that property of the actual start button. Should I be setting these
properties via a method?
"Leo" <Leo@discussions.microsoft.com> wrote
> I am in the process of building a VB6 class that represents the Windows
> startbutton. Currently it has two properties, one to set the caption of the
> button and one to enable or disable it. Cu...Evaluate Method.
I need help with evaluate Method.
What I am trying to do is write for loop for following.
UserForm2.Label1.Caption = ""
UserForm2.Label2.Caption = ""
UserForm2.Label3.Caption = ""
UserForm2.Label4.Caption = ""
UserForm2.Label5.Caption = ""
UserForm2.Label6.Caption = ""
UserForm2.Label7.Caption = ""
UserForm2.Label8.Caption = ""
I tried this(below) and many other thing, but nothing seem
to work. Any suggestion on making this work?
For i = 1 T...Object dosent support this property or method
This code behind a command button should check to see if a record exists and
open a form with that data if it does. If record does not exist it will open
the form in data entry mode.
I don't understand this error???
Private Sub cmdMember_Click()
On Error GoTo Err_cmdMember_Click
Dim stDocName As String
Dim stLinkCriteria As String
Dim dbcurrent As DAO.Database
Dim rstemp As DAO.Recordset
If IsNull([cmdMember]) Then
MsgBox "Please enter a Member # before proceeding."
'Check to see if a record already exis...Overtime Methods
I can't seem to find any information on how the overtime methods work in
Advanced Payroll. I have read the online manual and looked in Knowledgebase,
but I can't find anything about it.
Any ideas where I can get help with this? Perhaps a kb number or something?
What manual are you reading? For the overtime rates you need to read the
overtime rate manager manual. You should be able to download it from
CustomerSource. You can also send an e-mail to me. Take out the "nospam" part
of the address.
Charles Allen, MVP
"Tracey D" wrote:
...new string started on PF contact folder issue
Thanks so much for taking the time to look at my
I wanted to clear the air on my original message, I
think it had some confusing/incorrect syntax.
As I re-read my post, it doesn't make sense, so I'll
Forget all the references to the GAL as in my 1st
When the SBS server user creates a PF containg contact
items, by default the properties/OAB tab/'show this
folder as an email address list' ISN'T ticked.
When he does tick it on the server-side, the Outlook
2003 clients open a new email clicks on To: and in the
address lists available, the newly c...Is there a method in CString equivalent to std::string::replace?
How can I replace a substring in a CString? Isn't there an equvalent
CString method? For example I can write:
s.replace(s.begin()+8, s.end(), "*.*", 3);
After replacing 's' contains "C:\Temp\*.*";
How to implement this using 'CString'?
Thanks in advance
No, 'CStringT::Replace' does quite a different thing:
A snip from MSDN:
This function replaces instances of the specified character or
how can i get first 4 letter of str?
is there any function to get it?
sorry i am new in visual c++ field,
> CString str;
> str="hello wolrd";
> how can i get first 4 letter of str?
> is there any function to get it?
> sorry i am new in visual c++ field,
You should be able to find this in the Help. If you know the name of the
class, just look at the members (for CString in VS2002 and up you
actually have to look...change valuation method
1. My company uses standard costing (FIFO periodic) on all items. We want to
move to FIFO perpetual for one group of items. We do not want to create
brand new items. What is the best way to convert the existing items in Great
Plains from FIFO periodic to FIFO perpetual.
2. We tried changing overhead accounts on one item and got the error that
you cant edit this account number as there are unposted receipts for this
item. What tables do I check for this. We use manufacturing module too and
are on GP 8.
3. When we receive an item on purchase receipt, we get PPV and also material
overhead entri...CheckHealth Method
I want to confirm something related to CheckHealth method.
I've read somewhere that if during operation for device say PosPrinter
PrintNormal some error/exception occurs and you want to make sure this
error is because of device like out of paper use the checkHealth
internal method if it gives exception then indeed device is in error
case i.e its not healthy.
The problem is if I use External Health it gives me correct error in
case paper is out but Internal Check Health returns ok.
As per my understanding both should return error or exception.
Am I right in my understa...Pro VS Std suite user and workflow automation
If a Pro user creates a workflow rule can the std suite user apply that rule
to an account they own?
You cannot have Professional and Standard licences for the same module in the
same deployment. thgus, the only way that this could work is with Sales
professional and Standard Service, or Service Professional and Sales
Standard. You could not have Suite Standard users in the same deployment as
any Professional users.
> If a Pro user creates a workflow rule can the std suite user apply that rule
> to an account they own?
I have a CView class which is instatiated as a runtime class. I have
overridden the OnCreate( ) method but it never gets called. Here is how I
the CView (MyView) object is created:
pDocTemplate = new CMultiDocTemplate(
And here is my OnCreate method:
int MyView::OnCreate(LPCREATESTRUCT lpCreateStruct)
AfxMessageBox("oncreate is getting called");
Why is OnCreate not being called?
Have you provided the entry ON_WM_CREATE in the message map of your view
&q...Deleting part of a string
I have a field in a report that is a comma delimited list.
What I'd like is a function that will delete all after the first
comma, so that I get the first value only.
For example "Fred, Barney, Wilma" becomes "Fred".
In other words, I'd like whatever the VBA equivalent is of:
If "Replace" is the fxn I need, I'm not sure how to make it do this.
Thanks in advance,
On Thu, 31 Dec 2009 16:34:05 -0800 (PST), John Harrington wrote:
> I have a field in a report that is a comma delimited list.
> What...Boolean parameter in ActiveX method: wrong ole conversion?
I'm using Visual Studio 2005 and unmanaged C++ to write an MFC ActiveX
I want to add a method that takes a boolean parameter.
Through the wizard I add this parameter as VARIANT_BOOL and so the
wizard adds the following line in my idl file:
[id(1), helpstring("method Test")] void Test(VARIANT_BOOL bParam);
Moreover, it adds the following line in my control header file:
void Test(VARIANT_BOOL bParam);
I write the following simple code for the new method:
void MyCtrl::Test(VARIANT_BOOL bParam)
...How to set an string element's value to a CDATA block?
I've got a class hierarchy generated from a .xsd schema file using the
XSD.EXE tool. One of the elements will have its "inner text" set to a CDATA
block. The XSD.EXE tool exposed a "Value" property on that element to allow
setting that inner text. After I create the object hierarchy and specify all
the appropriate elements, attributes, etc., I serialize the objects to a .xml
file using XmlSerializer.
If I simply specify the "element.Value" property to the string data (what
should go inside the CDATA), the string simply becomes the inner text - it's ...convert class CString *' to 'short *'
Can anybody help to how to convert class CString *' to 'short *'
"priyanka" <email@example.com> wrote in message
> Can anybody help to how to convert class CString *' to 'short *'
> thank you
The question makes no sense - like converting the address of an elephant to
the address of a mouse.
What exactly do you want to do and why do you want to do it?
Author MOZART the music processor for Windows -
For discussion/sup...Flow of called methods in MFC
Does someone know where I can find the sequence of methods that are
called when I use this Microsoft's framework?
Thanks in advance.
Under what conditions? There are several thousand methods in MFC.
For startup, it calls the virtual methods CWinApp::InitInstance, CWinApp::PumpMessage and
CWinApp::ExitInstance. You can override these, but in practice you only want to override
the InitInstance and ExitInstance. After that, you need to say a lot more about what you
want to know.
On Thu, 25 Sep 2008 09:19:57 -0700 (PDT), ScottBright762 <firstname.lastname@example.org>
i'm writing an activex control with MS VC++ 6.0,capable of drawing a certain
number of graphs (max 5 graphs),which i want the user to choose.
I would like to insert the data to be drawn with an InsertData method,but
i've discovered with a little disappoint that i can't overload activex
methods:indeed i would like the control to call the appropriate InsertData
function depending on the number of quantities chosen,and i had thought of
writing 5 different versions of the InsertData method,but,as already said,it
Can you give me some advice?
Mittik wro...Searching Mails with a part of a string
I´ve got a network with several Exchange2003 Enterprise Servers. With only
one of them I have the following Problem: The Client can search a Mail with
Outlook2003. If the user puts the whole string of a word in the search field
the mail is found, for example if the word "test" is part of the mail and you
enter test as search string, the mail will be found. If you only enter "est"
as search string, the Mail will not be found. This concerns all Mailboxes on
one server. All Mailboxes on the other servers do work fine. The index is
configured in the same way on ever...The equivalent of a Find & Replace option
Is there way to "Find & Replace" some text (current date) in a multitude of
graphs/charts in Excel?
I have a workbook with 17 tabs with around 80 graphs/charts that need to
have the date changed on a weekly basis. Currently I am copying the new date
and pasting into each one, but figured someone would have a better solution.
Any ideas are greatly appreciated.
Put the date into a cell. Next time you replace them all in the charts,
inset a textbox that's linked to this cell. The easy way to do this is to
select the chart, click in the formula bar, type =, th...