| Collections in ASP and XML, using the Session Object (Part 1) |
|
 |
Index ‹ Visual Studio ‹ VB Scripts
|
- Previous
- 1
- Visual Basic >> "Reading emails from All Public folders"Hi,
I am developing a vb application to read the latest arrived mail from
"All public folders" through outlook. This should be dynamic as the
folders increase in the "All Public folders", The program should read
the folders accordingly.
Can anyone help on this.
- 2
- Visual Basic >> compiling the entire thingHi guys...
Here's a quick query...
I have almost finished making my first project in vb...
But I am confused...as to how should i compile the entire project and make a
setup ...
i know how to make the exe files...
I searched through MSDN but couldn't get much info...
And does the setup do everything ?...I mean what about the DSNs I created in
Control Panel, and what about my entire database ?...is that also properly
installed with the setup ?...
And how do i start doing it ?....
Please help...
thanks..
anupam
anupam@anupamjain.com
- 3
- Visual Basic >> Calling a Macro from another workbookHi,
Yes I have read up on the different ways of doing this, but I always
come to the same problem.
In my current code I have the line
Application.Run ("T1Seed1.xls!Main")
Which works fine (it calls the "Main" macro in T1Seed2.xls). But once
the "main" macro is run, the rest of my current macro doesn't run.
Here is my code (missing some variables thata bit above, but thats
ok).
Dim ESDUFile, RootPath, WorkBookToOpen, SheetToOpen, BuildingHeight As
String
ESDUFile = Sheets("Rotate spf red").Cells(10, 9)
RootPath = ESDUFile
Do While Right(RootPath, 1) <> "\"
RootPath = Left(RootPath, Len(RootPath) - 1)
Loop
BuildingHeight = 225
SeedScale = 345
For A = 1 To NumTowers
For B = 1 To 2
SheetToOpen = "T" & A & "Seed" & B & ".xls"
WorkBookToOpen = RootPath & SheetToOpen
FileCopy ESDUFile, WorkBookToOpen
Range("C22:C57").Copy
Workbooks.Open WorkBookToOpen
Windows(SheetToOpen).Activate
Sheets("RWDI_Factors").Select
Range("H67").Select
ActiveSheet.Paste
Range("D7") = SeedScale
Range("D6") = BuildingHeight
Application.Run ("T1Seed1.xls!Main")
Sheets("Factors").Select
Application.CutCopyMode = False 'closes the clipboard with massive
amounts of data thus does not prompt to save or close
ActiveWorkbook.Close True ' false means not to save, true means to
save and close
Windows("MR_Setup_underDevelopment_profiles.xls").Activate
Next B
Next A
It works fine up until right after the Application.Run line where it
will not continue on (ie it will not select the "Factors" sheet or do
anything after).
Is there another way I can do this that will allow the original macro
to continue running after it calls the macro in the other workbook?
Any help would be appreciated.
Jack
- 4
- Visual Studio C++ >> Simple question about dllimportI've got a h file for a usb device that has definitions of function exported
from a dll. An example would be (with #defines translated):
extern "C" __declspec(dllimport) int __stdcall FT_Open(int deviceNumber, int
*pHandle);
but where is the actual dll filename specified so my program knows where to
find it?
Thanks,
Michael
- 5
- VB Scripts >> Check for enabled NIC and execute commandHello all. I am trying to write a script with minimal vbs knowledge. I have
downloaded scriptomatic 2.0 and have made some progress but have come to a
head.
Background:
We use WSUS for all local and remote users in an NT4 domain (soon to be
migrated to AD). Remote users connect via Cisco VPN client. The clients
installs as a network device, is disable when not in use and enables when
the GUI is loaded. The detection frequency setting for WSUS runs at
intervals of 8 - 20 hours according to the documentation. This causes the
remote client to almost never check for updates.
Solution:
Write a script which checks or better still listens if the VPN is active
(objItem.ServiceName(CVirtA) and when it becomes active
(objItem.NetConnectionStatus=2) then run the command (wuauclt /detectnow).
I have the beginnings of something pasted in below which obviously doesnt
quite work unless you comment a few lines here and there, but doing that
does not give the desired result.
Can I use wsh/vbs to monitor the connection or would this need to work on a
timer?
If a timer how would that affect memory consumption on the notebook?
TIA.
' start script
On Error Resume
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
arrComputers = Array("localhost")
For Each strComputer in arrComputers
WScript.Echo
WScript.Echo "======================"
WScript.Echo "Computer: "& strComputer
WScript.Echo "======================"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM
Win32_NetworkAdapter", "WQL", _
wbemFlagReturnImmediately
+ wbemFlagForwardOnly)
If objItem.ServiceName="CVirtA" And objItem.NetConnectionStatus="2" Then
' C:\Windows\SYSTEM32\wuauclt.exe /detectnow
End If
- 6
- MFC >> VC2008 dpiaware manifest?When you create a new MFC application with the wizard in VC2008 you will see
the following code in stdafx.h:
#pragma comment(linker,"/manifestdependency:\"type='win32'
name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
What do you write in stdafx.h to add the dpiaware manifest (se below) the
same way?
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<asmv3:windowsSettings
xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
Best regards from Gaute
- 7
- Visual Basic [VB] >> Console.Writeline hangs if user click into the console windowI have a console app which does it's job and frequently spits out status
messages with Console.Writeline. I noticed that, if the user
accidentally clicks into the black console window, the cursor changes to
a filled white rectangle, and the app hangs at the next Console.Write
statement.
Can that be solved somehow? It is very dangerous for the application to
stop just because of a wrong mouse click.
I know I could reimplement the app as a windows forms app and write the
status messages to a ListView - but it is more of a fundamental
question. Since if this cannot be solved, I'd never write another
console app again for production environments.
Thanks for any help
Urs
- 8
- Visual Basic >> Icon size problemHello,
My program's frmAbout has an icon. The ico file has the same icon in two
sizes, 16 x 16 and 32 x 32 pixels. I don't want the smaller one to be
displayed to users. So, the size should be 32 x 32 pixels.
Anyway, on some computers the icon will be displayed in size 16 x 16
pixels. How could I prevent this?
The ico file is dislayed in picIcon which is a PictureBox element. Its
ScaleMode is "Pixel", AutoDraw is "False", and AutoSize is "False".
The ScaleMode value of frmAbout is "Twip".
What should I do?
Thanks,
Mika
- 9
- VB Scripts >> Help with Right functionnnanna wrote:
> *SAMPLE FILE IS:*
>
> 13301794560@133SH.COM
> 13301794560@133SH.COM
> 2205171@MCIMAIL.COM
> 35988869625@SMS.MTEL.NET
>
> *DESIRED RESULT:
>
> 133sh.com
> MCIMAIL.COM
> sms.mtel.net
>
> When I use the [B]Right* function to get the strings right of "@" it
> doesn't give me the desired result, the *Left* function does
> give strings right of "@". Any ideas?
>
> CODE
>
> '##############################################################################################
> '##############################################
>
> 'Textfile to read
> sInpFile = "C:\WindowsScripts\vbscript\ExcelList\ListItems.txt"
>
> 'Result file
> sResultFile = "C:\WindowsScripts\vbscript\ExcelList\clean.txt"
>
> 'Character to search
> strInput = "@"
>
> ' FileSystemObject.CreateTextFile
> Const OverwriteIfExist = -1
> Const FailIfExist = 0
>
> ' FileSystemObject.OpenTextFile
>
> Const FailIfNotExist = 0
> Const ForReading = 1
> Const ForAppending = 8
>
>
>
> Set oFSO = CreateObject("Scripting.FileSystemObject")
>
> ' Get list item names into an array:
> Set f = oFSO.OpenTextFile (sInpFile,ForReading, FailIfNotExist,
> OpenAsASCII)
>
>
>
>
> Dim aListitem()
> i = 0
> Do Until f.AtEndOfStream
> sLine = Trim(f.ReadLine)
> If Not sLine = "" Then
> ReDim Preserve aListitem(i)
> aListitem(i) = sLine
> i = i + 1
> End If
> Loop
> f.Close
>
> ' Loop through the listitem array
>
>
> ' Create result file
> Set fOutputFile = oFSO.CreateTextFile(sResultFile,OverwriteIfExist,
> OpenAsASCII)
>
>
>
> For Each sItem In aListitem
>
> kline = instr(sItem,strInput)
> pline = left(sItem,kline)
> fOutputFile.WriteLine pline
> kline = 0
>
> Next
> 'fOutputFile.close
>
> wscript.echo "Process Complete" [/B]
Never mind guys....I figured it out
--
nnanna
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
- 10
- MFC >> How to implement transparent static on dialog box?I would implement a transparent static text to show
the status text of the progress on dialog box.
The background of dialog box is not default system color.
Originally, I set the bk mode of the static to transparent mode
and return a NULL_BRUSH in OnCtlColor() of dialog class.
It can fit my requirement if the static text is not changed.
However, the old text is not erased if the static text is changed.
I think I need to override some function to erase background first.
Which function do I need to override to erase the background?
or I need to implement my own static class to do so? and how?
Best Regards
Jackal Huang
- 11
- Visual Basic [VB] >> TUTORIALS ON COMPUTER PROGRAMMINGlanguages Have the complete details regarding programming languages.
A-Z about programming languages like Java J2EE, C++, code
implementation guides and more.
http://operatingsys.blogspot.com/
Google.com is not only a search engine but also does webadvertising
through websites and blogs.
Lakhs of common people are earning hundreds of dollars through online
advertising.
It also has other products like chatting,google earth,google talk etc.
Genuine Internet jobs for all. Earn Unlimited income.visit
http://googlepromisesyou.blogspot.com/
- 12
- Visual Basic >> output to text file copied data from Clipboard...Hi, I'm a bit new to this... but here it goes.
I have created a macro on which in one part it does a copy of a
certain selected text. I wan't this copied strings, which I belive is
now on the clipboard, pasted on a text file.... or essantially I wan't
to know how can I output this copied data to a text file? any ideas...
thanks in advance!
-Jona
- 13
- 14
- Visual Studio C++ >> LNK 4210 comes when i migrate from VC6.0 to VC8.0Hi,
I had a DLL build using VC 6.0. I migrated the Source to VC8.0. Now I
am getting the linker error "LNK4210: .CRT section exists; there may be
unhandled static initializers or terminators".
Please note that I have my own DLL Entry point specified in the make
file for the DLL.
I have checked documentation. I have tried to call _CRT_INIT function
in my entry point funtion but then i get the LNK2001 unresolved
external symbol CRT_INIT.
Can anybody tell me the exact problem and fix for it.
As far as I can figure out the constructors for global members is
called by run time library. but in this case i am not able to
initialize the run time library (_CRT_INIT ??)
Thanks
Programmer_2004
- 15
- MFC >> VC++6, DAO, Access, create tableI'm trying to create a table using the Execute method of
CDaoDatabase. However, when trying these statements I get
the corresponding errors shown below
TRIED:
CREATE TABLE Kund (Kundnr NUMBER PRIMARY KEY NOT NULL,
Namn TEXT(40) NOT NULL, Ort TEXT(30))
ERROR MESSAGE:
Syntax error in CREATE TABLE statement.
TRIED:
CREATE TABLE Kund (Kundnr NUMBER PRIMARY KEY NOT NULL,
Namn TEXT NOT NULL, Ort TEXT)
ERROR MESSAGE:
Syntax error in CREATE TABLE statement.
That error message is not very helpful. Is there a way to
see more exactly what the error is? Or if you don't know
that, maybe you know what is wrong with my Access SQL
query?
/Joachim
|
| Author |
Message |
BrenB

|
Posted: Tue Jan 23 04:03:06 CST 2007 |
Top |
VB Scripts >> Collections in ASP and XML, using the Session Object (Part 1)
Let's say that I have an xml file with:
<PRODUCTS>
<PRODUCT>
<SKU>AAA111</SKU>
<NAME>Name One</NAME>
<COLORS>
<COLOR><ID>BK</ID><PRICE>10</PRICE></COLOR>
<COLOR><ID>WH</ID><PRICE>20</PRICE></COLOR>
</COLORS>
</PRODUCT>
<PRODUCT>
<SKU>BBB222</SKU>
<NAME>Name Two</NAME>
<COLORS>
<COLOR><ID>BK</ID><PRICE>20</PRICE></COLOR>
<COLOR><ID>WH</ID><PRICE>30</PRICE></COLOR>
</COLORS>
</PRODUCT>
<PRODUCTS>
When the session starts, I want to create a Session Variable/Object
that can be used in ASPs later like this:
(Example Use in VBScript)
Dim colProducts
colProducts = Session("PRODUCTS")
For Each oProduct In colProducts
Response.Write(oMyProduct("SKU")
For Each oColor In oProduct("COLORS") ' Access a SUB collection
directly.
Response.Write(oColor("ID"))
Next
Next
oMyProduct = colProducts("AAA111")
Response.Write(oMyProduct("NAME"))
It has been a very long time since I coded, and so my code is probably
a bit rusty. Also, I have never really worked with collections.
My questions are:
1.) In my session_onstart code, how do I create a collection and store
it into the session variable? What language should I use? Code
Examples?
2.) In my ASPs, how do I propperly access those collections and
sub-collections? Languages? Code Examples?
Thanks in advance.
Visual Studio108
|
| |
|
| |
 |
Anthony

|
Posted: Tue Jan 23 04:03:06 CST 2007 |
Top |
VB Scripts >> Collections in ASP and XML, using the Session Object (Part 1)
"Beav" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> Let's say that I have an xml file with:
>
> <PRODUCTS>
> <PRODUCT>
> <SKU>AAA111</SKU>
> <NAME>Name One</NAME>
> <COLORS>
> <COLOR><ID>BK</ID><PRICE>10</PRICE></COLOR>
> <COLOR><ID>WH</ID><PRICE>20</PRICE></COLOR>
> </COLORS>
> </PRODUCT>
> <PRODUCT>
> <SKU>BBB222</SKU>
> <NAME>Name Two</NAME>
> <COLORS>
> <COLOR><ID>BK</ID><PRICE>20</PRICE></COLOR>
> <COLOR><ID>WH</ID><PRICE>30</PRICE></COLOR>
> </COLORS>
> </PRODUCT>
> <PRODUCTS>
>
> When the session starts, I want to create a Session Variable/Object
> that can be used in ASPs later like this:
> (Example Use in VBScript)
>
> Dim colProducts
> colProducts = Session("PRODUCTS")
> For Each oProduct In colProducts
> Response.Write(oMyProduct("SKU")
> For Each oColor In oProduct("COLORS") ' Access a SUB collection
> directly.
> Response.Write(oColor("ID"))
> Next
> Next
>
> oMyProduct = colProducts("AAA111")
> Response.Write(oMyProduct("NAME"))
>
> It has been a very long time since I coded, and so my code is probably
> a bit rusty. Also, I have never really worked with collections.
>
> My questions are:
>
> 1.) In my session_onstart code, how do I create a collection and store
> it into the session variable? What language should I use? Code
> Examples?
Are you sure you want to use Session? It seems unlikely at the
session_onstart you will have enough info to distinguish that one session
needs one set of data and another a different set.
In fact be sure first of all that this isn't best done simply using a DB.
IOW (if you go ahead) you will more likely want Application_onstart and
store the data in the application object rather than duplicate the same info
across multiple sessions.
Language VBScript
Example:-
Dim oDOM
Set oDOM = Server.CreateObject("MSXML2.FreeThreadDOMDocument.3.0")
oDOM.async = false
oDOM.load Server.MapPath("/data/products.xml")
Set Application("Products") = oDOM
>
> 2.) In my ASPs, how do I propperly access those collections and
> sub-collections? Languages? Code Examples?
Dim oDOM : Set oDOM = Application("Products")
For Each elemProduct In oDOM.selectNodes("//PRODUCT")
For elemColor In elemProduct In elemProduct("COLORS/COLOR")
Response.Write elemColor.selectSingleNode("ID").Text
Next
Next
>
> Thanks in advance.
>
|
| |
|
| |
 |
Anthony

|
Posted: Tue Jan 23 05:14:55 CST 2007 |
Top |
VB Scripts >> Collections in ASP and XML, using the Session Object (Part 1)
"Anthony Jones" <EMail@HideDomain.com> wrote in message
news:O$EMail@HideDomain.com...
>
> "Beav" <EMail@HideDomain.com> wrote in message
> news:EMail@HideDomain.com...
> > Let's say that I have an xml file with:
> >
> > <PRODUCTS>
> > <PRODUCT>
> > <SKU>AAA111</SKU>
> > <NAME>Name One</NAME>
> > <COLORS>
> > <COLOR><ID>BK</ID><PRICE>10</PRICE></COLOR>
> > <COLOR><ID>WH</ID><PRICE>20</PRICE></COLOR>
> > </COLORS>
> > </PRODUCT>
> > <PRODUCT>
> > <SKU>BBB222</SKU>
> > <NAME>Name Two</NAME>
> > <COLORS>
> > <COLOR><ID>BK</ID><PRICE>20</PRICE></COLOR>
> > <COLOR><ID>WH</ID><PRICE>30</PRICE></COLOR>
> > </COLORS>
> > </PRODUCT>
> > <PRODUCTS>
> >
> > When the session starts, I want to create a Session Variable/Object
> > that can be used in ASPs later like this:
> > (Example Use in VBScript)
> >
> > Dim colProducts
> > colProducts = Session("PRODUCTS")
> > For Each oProduct In colProducts
> > Response.Write(oMyProduct("SKU")
> > For Each oColor In oProduct("COLORS") ' Access a SUB collection
> > directly.
> > Response.Write(oColor("ID"))
> > Next
> > Next
> >
> > oMyProduct = colProducts("AAA111")
> > Response.Write(oMyProduct("NAME"))
> >
> > It has been a very long time since I coded, and so my code is probably
> > a bit rusty. Also, I have never really worked with collections.
> >
> > My questions are:
> >
> > 1.) In my session_onstart code, how do I create a collection and store
> > it into the session variable? What language should I use? Code
> > Examples?
>
> Are you sure you want to use Session? It seems unlikely at the
> session_onstart you will have enough info to distinguish that one session
> needs one set of data and another a different set.
>
> In fact be sure first of all that this isn't best done simply using a DB.
>
> IOW (if you go ahead) you will more likely want Application_onstart and
> store the data in the application object rather than duplicate the same
info
> across multiple sessions.
>
> Language VBScript
>
> Example:-
>
> Dim oDOM
> Set oDOM = Server.CreateObject("MSXML2.FreeThreadDOMDocument.3.0")
> oDOM.async = false
> oDOM.load Server.MapPath("/data/products.xml")
>
> Set Application("Products") = oDOM
>
> >
> > 2.) In my ASPs, how do I propperly access those collections and
> > sub-collections? Languages? Code Examples?
>
> Dim oDOM : Set oDOM = Application("Products")
>
> For Each elemProduct In oDOM.selectNodes("//PRODUCT")
> For elemColor In elemProduct In elemProduct("COLORS/COLOR")
Oops should be
For Each elemColor elemProduct.selectNodes("COLORS/COLOR")
> Response.Write elemColor.selectSingleNode("ID").Text
> Next
> Next
>
>
>
> >
> > Thanks in advance.
> >
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ Visual Studio ‹ VB Scripts |
- Next
- 1
- Visual Basic >> The best way to yield processor to other users for long-running prOur VB application gets data from SQL Server database and send the data to
the client using socket.
The data returned to the client can be around 800,000 records, and this can
take a while. I know, what do you use 800,000 records for ?
Other application is using those data to draw a chart.
While the application is processing requests for 1 user (say to return
800,000 records), other users can not interact with the application, until it
finishes
sending all 800,000 records to the clients.
I am thinking to put a DoEvents in the loop after the application sends a
certain number of messages to the client, so that
other users will be able interact with the application if the 1st user is
requesting a lot of data.
I am wondering if there is a better way to do it.
In VB Help it says for long-running processes, yielding the processor is
better accomplished by using a Timer or delegating the task to an ActiveX EXE
component.
In the latter case, the task can continue completely independent of your
application, and the operating system takes case of multitasking and time
slicing.
When I moved the processing codes to an ActiveX exe, the application still
does the same thing where it waits until it finishes processing the ActiveX
EXE
before other users can interact with it.
How can I do it correctly with either the ActiveX exe or a Timer ?
These are my original codes:
sub CIServer1_PacketReceived (ByVal FromClient As Object, Packet As Variant,
ByVal BytesRec As Integer)
:
Do While Not rs.EOF
sStr2 = "|" & rs("PACKET_DATA")
If Len(sStr2) + Len(sStr) < c_MAXOUT Then
sStr = sStr & sStr2
Else
sStr = Mid(sStr, 2) & "|"
FromClient.Send sStr 'send data to client
y = y + 1
'I am thinking to do the following codes to do DoEvents after sending a
certain number of messages to the client
If y > c_MAX_TO_SEND Then
y = 0
DoEvents
End If
sStr = sStr2
End If
rs.MoveNext
Loop
sub CIServer1_PacketReceived (ByVal FromClient As Object, Packet As Variant,
ByVal BytesRec As Integer)
:
Set obj = New myActiveXExe.mycls
'GetSendData does the same thing like the above "do while not" without the
DoEvents.
'But, the application still waits until it finishes processing the ActiveX
before
'other users can interact with it.
obj.GetSendData FromClient, sSql
Thanks a lot.
- 2
- 3
- MFC >> RoundRect and borderHello,
I'm using RoundRect method to draw a rectangle.
How do I draw a RoundBorder(using different color) around this
RoundRectangle ?
Thanks,
Janiv Ratson.
- 4
- MFC >> DeleteTimerQueueEx, why it never returns?Hi,
I've got a thread, where i create TimerQueue. Everything goes perfect,
untill i don't want to close the Queue. If i do it that way:
DeleteTimerQueueEx( m_hTimerOutQueue, INVALID_HANDLE_VALUE );
it never returns. But if i Close it like that:
DeleteTimerQueueEx( m_hTimerOutQueue, NULL);
it obviously returns, but i can't start it again. Could You, please tell me,
what can couse that?
I'm just the beginner with MultiThreading and Timers, so i don't even know,
what could help You in finding out the solution.
Ask me whatever You want:]
Thx GIGI
- 5
- 6
- MFC >> Looking for information on MFC TCP CommunicationWe have roughly 6 software programs that run in tandum with each other
that currnetly use UDP to transmit information (Images, various little
packets, etc) between each program. I'm developing a new application
that is pumping more data through and we've decided to give TCP a shot.
I'm personally new to Network communication and TCP, I know the basics,
but nothing in-depth. I'm looking to develop a generic stand-alone
class with input and output queues that will act as an interface for
each program. I think this will be the best way to go, but welcome any
other suggestions from those with more experience.
Can someone point me to a location where I can get an intro to socket
communication with MFC?
The sending / receiving will be done in seperate threads as queue data
arrives. I've read that CAsyncSocket has issues with threading. Does
anyone know if this is still the case?
Thanks in advance for the help,
Josh McFarlane
- 7
- MFC >> Internal error.. any help?Can anybody please help me in fixing this link error that i get in my
VC++ project?
Linking...
LINK : error : Internal error during ReadSymbolTable
ExceptionCode = C0000005
ExceptionFlags = 00000000
ExceptionAddress = 0040ED6B
NumberParameters = 00000002
ExceptionInformation[ 0] = 00000001
ExceptionInformation[ 1] = 00000000
CONTEXT:
Eax = 40070F98 Esp = 0012EAC4
Ebx = 3FFF0000 Ebp = 004695A8
Ecx = C0000A40 Esi = 40070F5C
Edx = 00000000 Edi = 3FFF01C0
Eip = 0040ED6B EFlags = 00010202
SegCs = 0000001B SegDs = 00000023
SegSs = 00000023 SegEs = 00000023
SegFs = 00000038 SegGs = 00000000
Dr0 = 0012EAC4 Dr3 = 3FFF0000
Dr1 = 004695A8 Dr6 = C0000A40
Dr2 = 00000000 Dr7 = 00000000
Error executing link.exe.
Tool execution canceled by user.
I get this error when i try to build a VC++ project that uses a static
library was made using another VC++ project.
Thanks
- 8
- MFC >> Update dynamically appended MDI menuI am trying to dynamically append a menu to MDI Doc/View's menu.
Everything is ok except that the menu doesn't get refreshed till I
move/minimize (etc.) the main App's window. Kindly suggest as to how to
make it visible as soon as the child window gets visible.
Seems AfxGetApp()->m_pMainWnd->UpdateWindow(); isn't working either
:o(
CMenu *pMainMenu = AfxGetApp()->m_pMainWnd->GetMenu();
// Assuming that we have a qualified CMenu object pointer
// called 'pChildMenu', let's append it to the main menu:
pMainMenu->AppendMenu(MF_STRING|MF_POPUP , (int)pChildMenu->m_hMenu,
"Options");
// Update the app's main window:
AfxGetApp()->m_pMainWnd->UpdateWindow(); // this DOESN'T seem to work!
warm regards,
D. Rathore
(remove all underscores for email ID)
- 9
- Visual Basic [VB] >> DataTables and Outer JoinHello:
I totally messed up when asking the question.... Here is my problem
statement/ background
Background: My program reads an excel file and populates three datatables
depending on the value in one of the columns. Now when i create a
datarelation and try to combine the tables, I loose values that are unique
in the child tables. I want to make sure that even those values will get
transfered. Is there a way to go about this? That is why i was wondering if
there is a way i could program an OuterJoin, leftjoin or so. I could make
the two datatables, fill up excel sheets with that info and then start using
those table to make the outer join but wanted to make sure if there was an
easier way
All help would be appreciated,
Thank You
Prasun
- 10
- 11
- Visual Basic [VB] >> Where is array data kept?With regard to a declaration like:
> Dim myIntArray As Integer = new Integer(6)
Jesse Liberty, in _Programming Visual Basic .NET, 2nd Edition_
(O'Reilly) says:
>While VB.NET arrays are reference types, created on the heap, the
>elements of an array are allocated based on their type. Thus,
>myIntArray is a reference type allocated on the heap, and the integer
>elements in myIntArray are value types, allocated on the stack. (While
>you can box a value type so that it can be treated like a reference
>type, as explained in Chapter 6, it is not necessary or desirable to
>box the integers in an array.) By contrast, an array that contains
>reference types, such as Employee or Button, will contain nothing but
>references to the elements, which are themselves created on the heap.
Question:
Is that true? And if so, what happens when you return and the stack
gets popped, while a reference to the array created on the heap may
still exist somewhere?
- 12
- MFC >> CRichEdit Control -Vertical Allignment(Visio Type)Hai,
Iam looking to insert text in RichEdit Control so that it is
centered/left/right vertically and by default VC++,CRichEdit supports
Horizantal allilgnment and i would like to do similar to Visio if we drag a
box and enter the text and we have both options(Horizantal/Vertical) to set
the text in the box and any expert comments would be helpful
Thanks and Regards
suresh
- 13
- MFC >> localisation problemsHi
I am creating a resource language only dll, and I want it in French
I have tried to apply TN057, Localisation of MFC Components, but
unfortunately still get some strings in English.
I have pointed to the correct "l.fra" directory, the project has built, but
when checking the resources the MFC strings are still in English.
The dll is set for standard windows libraries use, no atl
There is no mention of /D_AFXDLL in my project
Can someone help please how to get the following string (and associated
strings) into it's french mfc equivalent
"Please enter no more than %1 characters.", this has an MFC ID of 61716
TIA
Tony
- 14
- Visual Basic >> change the variable within a functionHello,
In pascal I did function/procedure a that change the value of b like this :
function a(var b): integer;
begin
b := b + 1;
result := true;
end;
If b was original = 3, then it is changed to 4.
How can I do that in VB 6.0 ?
Thanks :)
- 15
- VB Scripts >> Bold characters in a message boxHi there
This is a newbie question.
How can i put some characters in bold in a message box? I tried with \b
but couldn't succeed.
And how to insert a CRLF in a message box?
Thanks for your help
Phil
|
|
|