Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: zhshqzyc

Page 1 of 14 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    519

    [RESOLVED] Get substrings from a string

    Hello, suppose I have a string that has length n.
    Now if m<n is given, I want to find all substrings which have a fix length m.
    Is there a quick way?

    Thanks for share your code.
  2. Replies
    2
    Views
    369

    Re: Regular expression pattern

    I mean
    string pattern = key + "[^\\d]+.*";
    or

    string pattern = key + @"[^\\d]+.*";
    or

    string pattern = key + @"[^\d]+.*";
    I want to match a pattern that starts with "something", contains...
  3. Replies
    2
    Views
    369

    Regular expression pattern

    Hi, I want to write a pattern like this, plase correct it.


    string key = "something";
    string pattern = key + "[^\\d]+.*";
    return Regex.IsMatch(string_value, pattern);

    I don't know how to add...
  4. Re: Object reference not set to an instance of an object.

    It was defined as

    misValue = System.Reflection.Missing.Value;
    I still got error even I redifine it in the scope.
  5. [RESOLVED] Object reference not set to an instance of an object.

    Hi, I am stuck here. The code is pretty straightforward.

    string str1=null;
    string str2=null;
    int rCnt = 0;

    for (rCnt = 2; rCnt <= nRows;...
  6. Replies
    0
    Views
    263

    Using SelectMany

    Hi, I have a list xxx which likes


    List<string> xxx = new List<string>();
    // add elements to xxx.
    xxx ={a,b,c,t} //xxx is very long thousands of elements
    // read a matrix from a text file....
  7. [RESOLVED] Object reference not set to an instance of an object"

    StreamReader sr1 = new StreamReader(name1);
    Dictionary<string, string> dictmap = new Dictionary<string, string>();
    Dictionary<int, string>[] dictped = new...
  8. Retrieving Data from database using TableAdapter, storing it in String/Array

    Here is a little code but not completed.
    Hope somebody give me a hint. I want to sort the result.


    Object RReturn = new Object();
    DataSet1TableAdapters.droughtDataTableAdapter k1 =...
  9. Re: "Unable to find an entry point named 'GetForegroundwindow' in DLL 'User32.dll'."

    Here used Intptr.
    http://www.pinvoke.net/default.aspx/user32.setactivewindow
    Which one is right?
  10. [RESOLVED] "Unable to find an entry point named 'GetForegroundwindow' in DLL 'User32.dll'."

    Hello,

    I don't know why I got the error.

    EntryPointNotFoundException was unhandled by user code
    Thanks for help.

    Private Declare Function SetForegroundwindow Lib "User32" (ByVal hwnd As...
  11. Re: Run-time error '713' Class not registered.

    Can you tell me how to check its existance in registry?

    Suppose the component is named PControl.ocx.
  12. Re: Run-time error '713' Class not registered.

    It's a control compontent.
    OS WIN xp sp3.
    I use regv32 to regist it.

    It is in a user folder.
  13. [RESOLVED] Run-time error '713' Class not registered.

    Hello,

    I have a vb6 application.
    After I start or build the program I always get this error

    Run-time error '713' Class not registered.
    Even I register this ocx component, it is still there.
    ...
  14. Replies
    4
    Views
    821

    Re: Define a ListBox items text.

    The question is that the list items are already existing.
    I want to replace or modifiy them with new values.

    How to?
  15. Replies
    4
    Views
    821

    [RESOLVED] Define a ListBox items text.

    Hi,

    Suppose I have a listbox aaa which has two items.
    How to define the text for each item?


    My code is incorrect but not sure why?


    aaa.ItemData(0)="Yes"
  16. Replies
    2
    Views
    572

    [RESOLVED] "Timeout waiting for ACK..."

    Hello,

    I am using vb6. I got an error "Timeout waiting for ACK..." while start my app.
    After some time(hours) the error disappeared. A new error occuried.

    "File Not Found...
  17. Replies
    1
    Views
    507

    [RESOLVED] tlb or dll

    Hello,

    If I open the project's proterty. Some reference types are dll, the other are tlb.
    But if I look at the path, both types files exist with the same name.
    Why?

    e.g.

    xxx.dll and...
  18. Replies
    3
    Views
    2,038

    Re: [RESOLVED] vbp reference

    Understand it mostly except two points.
    1)If a dll is updated, is the old one still in the registry?

    I mean if the current one is
    ...
  19. Replies
    3
    Views
    2,038

    [RESOLVED] vbp reference

    Hello,

    Suppose I open a vbp file with notepad, then

    Reference=*\G{BF119BF5-25E9-4807-9E24-F35B7E94449C}#c.3#0#..\Utils\utils.dll#Utils-Common

    Can you please explain to me a little bit?
    ...
  20. Replies
    1
    Views
    467

    Re: Invalid outside procedure

    Ignore it.
    The question becomes that I want to define a variable

    Public CERR_OVERAMT As String
    CERR_OVERAMT = GetMessage(LDest_UserDisplay, MSGGRP_MESSAGEBOX, MSGID_MESSAGEBOX_CERR_OVERAMT,...
  21. Replies
    1
    Views
    467

    [RESOLVED] Invalid outside procedure

    Hello,

    I got an error on the first parameter LDest_UserDisplay highlighted in the following function while compile.

    Private CERR_OVERAMT As String
    CERR_OVERAMT = GetMessage(LDest_UserDisplay,...
  22. Replies
    1
    Views
    530

    Fatal error occurred

    Hi,
    After I start the vb6 program, a message box jumps out.


    FATAL ERROR OCCURRED! THE SYSTEM WILL SHUTDOWN!
    System.InvalidOperationException: The Key 'xxxxx' does not exist in the
    appSettings...
  23. Replies
    6
    Views
    716

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click...
  24. Replies
    6
    Views
    716

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click...
  25. Replies
    6
    Views
    716

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click...
Results 1 to 25 of 327
Page 1 of 14 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center