Stefan Leichter
053b839179
Fixed DECIMAL_SETZERO
...
Removed a workaround for the former problem.
2003-05-16 20:13:50 +00:00
Stefan Leichter
9daabbc8d1
Added stub for VarBstrFromDec.
2003-05-15 22:58:48 +00:00
Marcus Meissner
144b0d150b
Handle VT_I2 <-> VT_USERDEFINED/TKIND_ENUM conversions too.
2003-05-15 22:58:17 +00:00
Stefan Leichter
39aab38006
Partial implementation of VarDecFromStr.
2003-05-15 04:15:25 +00:00
Dimitrie O. Paun
b46d8235c1
Make sure winsock.h gets included before stdlib.h.
2003-05-13 23:36:33 +00:00
Dmitry Timoshkov
1eb2c05070
Remove redundant ITypeLib2_AddRef's. Makes
...
LoadTypeLib/ITypeLib2_Release work.
2003-05-13 22:15:26 +00:00
Francois Gouget
f803e2a92d
Fix miscellaneous spelling errors and typos.
2003-05-13 00:41:57 +00:00
Alexandre Julliard
f54ffdac93
Removed unnecessary function link names.
2003-05-11 03:04:57 +00:00
Maxime Bellengé
3270641c60
- Fix scanline size in OLEPictureImpl_Load for jpeg
...
- Convert from RGB to BGR according to BITMAPINFOHEADER
documentation.
2003-05-08 17:35:12 +00:00
Alexandre Julliard
8f6727c57d
Added NONAMELESSUNION/STRUCT defines.
2003-04-27 00:40:47 +00:00
Ove Kaaven
899fafca82
Preliminary implementation of proper IDispatch marshalling.
2003-04-26 02:11:41 +00:00
Alexandre Julliard
150cd5a784
Avoid local WINAPI function pointers in _invoke.
2003-04-17 02:20:52 +00:00
Alexandre Julliard
c2ebe1ff93
Removed uses of the non standard ICOM_VTBL macro.
2003-04-10 18:17:34 +00:00
Dmitry Timoshkov
2d55e0484c
Fix some problems found while compiling and linking Wine under
...
Cygwin.
2003-03-31 23:58:27 +00:00
Alexandre Julliard
e048adab83
List 16-bit spec files explicitly to avoid problems with some versions
...
of make.
2003-03-23 20:00:02 +00:00
Alexandre Julliard
114a31a2a8
Take advantage of new winebuild syntax to remove redundant function
...
names in spec files.
2003-03-20 03:53:12 +00:00
Jon Griffiths
cd4234aa49
Documentation updates.
2003-03-18 18:35:48 +00:00
Alexandre Julliard
a9c51cb60b
Replaced forwards by normal function declarations.
2003-03-17 00:17:00 +00:00
Adam Gundy
962b81d607
Handle coercing VT_DISPATCH into VT_PTR.
2003-03-06 22:42:28 +00:00
Marcus Meissner
7ba0c5f3aa
VarAdd: set 'rc' correctly from BSTR addition.
2003-03-04 02:14:32 +00:00
Marcus Meissner
84213a37ff
Handle VT_PTR->VT_VARIANT arguments of Invoke.
2003-03-04 02:14:10 +00:00
Mike Hearn
ea957415b0
Check both pointers in GetContainingTypeLib.
2003-02-26 04:36:03 +00:00
Marcus Meissner
7d2173a9e9
Do not free the old string in SysReAllocStringLen, reuse the old
...
string memory (if 'in' is NULL).
2003-01-28 00:30:29 +00:00
Marcus Meissner
b3be773afe
Added R4 and R8 comparison to VarCmp.
...
Added I2 to VarFormat.
Added VarSub, VarDiv, VarMul for integer and float types.
2003-01-28 00:23:19 +00:00
Alexandre Julliard
43690e9e47
Removed no longer needed inclusion of heap.h.
2003-01-24 00:54:58 +00:00
Matthew Davison
60009b9a56
Removed calls to HEAP_strdupAtoW.
2003-01-23 23:07:38 +00:00
Alexandre Julliard
f8aa3b506c
Added -Wpointer-arith gcc flag, and fixed the resulting warnings.
2003-01-23 21:32:35 +00:00
Marcus Meissner
d0372b4e6e
Fixed ICOM_CALLs for IFont_xx methods.
...
Added IPersistPropertyBag, IPersistStreamInit interfaces with stubs.
Implemented IDispatch::Invoke for the used DISPIDs.
2003-01-23 01:23:59 +00:00
Marcus Meissner
0df0304048
Print a large failure message if we try to load stdole32.tlb and
...
fail.
2003-01-21 19:29:33 +00:00
Francois Gouget
18e6bb81e3
Fix the case of floats in VarBstrFromR4, VarBstrFromR8 and
...
VarBstrFromCy.
We cannot check for equality of floats or doubles because of rounding
errors. Check equality to 14 digits for doubles.
Add more precision to the expected results so that they match actual
results.
Print floating values with more precision so we know what went wrong.
Specify the locale for all variant functions that depend on it.
Added return codes for Win95. Win95 returns dates with only two digits
for the year.
Uncommented more VariantCopyInd and VariantChangeTypeEx tests.
2003-01-13 18:30:18 +00:00
Marcus Meissner
fe483aae1d
Coerce VT_UNKNOWN <-> VT_DISPATCH, NULL is valid in these cases.
...
Drop VT_x -> VT_x coercions, they are handled before the switch()
already.
2003-01-11 20:58:58 +00:00
Marcus Meissner
d5e60ea373
Convert VT_DISPATCH variants into VT_USERDEFINED/TKIND_DISPATCH and
...
TKIND_INTERFACE targets, Query IID_IDispatch if necessary.
2003-01-11 20:58:35 +00:00
Marcus Meissner
728bedcfc6
Added GIF decompressor support to OLE Automation IPictures.
2003-01-09 06:04:33 +00:00
Dan Kegel
0fd521fee3
Change RECT to use LONG to match win32 standard headers and fix format
...
strings to use %ld for RECT elements.
2003-01-08 21:09:25 +00:00
Dimitrie O. Paun
297f3d898d
Define NONAMELESS{STRUCT,UNION} explicitly in the files that need them.
2003-01-07 20:36:20 +00:00
Francois Gouget
44eb8bf59f
Many oleaut32 APIs are missing on Win95/IE3. Load them dynamically.
...
Uncomment some 'NULL' tests as they pass on Windows and on Wine.
Comment out those that crash on Win95 and indicate why they are
commented out.
Remove two redundant tests in vartest.c (VarI1FromBool and
VarUI2FromI2, last diff hunk).
2003-01-07 19:40:40 +00:00
Alexandre Julliard
52395b0eb9
Fixed some issues caused by the new oaidl.h.
2003-01-05 20:32:30 +00:00
Ove Kaaven
40b94e5347
Avoid direct ICOM_CALL usage.
2003-01-05 01:06:04 +00:00
Francois Gouget
065e928a7b
The vt field should be a VARTYPE not a VARENUM.
2003-01-05 01:03:12 +00:00
Dimitrie O. Paun
cef5961d2b
Eliminate lots of __WINE__ conditionals from the headers.
2003-01-03 19:12:55 +00:00
Marcus Meissner
8ff278d25e
Implemented SafeArray{SetIID,GetIID,SetRecordInfo,GetRecordInfo}.
...
Added support for FADF_HAVEIID, FADF_RECORD, FADF_HAVEVARTYPE.
Implemented SafeArrayAllocDescriptorEx and SafeArrayGetVarType
correctly.
Fixed second argument of SafeArrayCopyData (it is just SAFEARRAY*).
Changed allocation to include 16 bytes before the SAFEARRAY (to store
IID/VARTYPE/IRecordInfo*).
VARTYPE -> size array was not indexed correctly.
Added lots of testcases for most functionality.
Added IRecordInfo interface definition.
2003-01-02 23:13:56 +00:00
Marcus Meissner
48e583db52
Handle VT_ERROR->VT_I4/VT_R4 coercion.
...
VariantCopy does not need to check the return of VariantClear.
VariantCopyInd now copies VT_UNKNOWN and VT_DISPATCH too.
VarCmp handles VT_BOOL.
VarFormat handles VT_BSTR.
coerce_array fixed for VT_ARRAY|VT_UI1 -> VT_BSTR and VT_ARRAY|x ->
VT_SAFEARRAY cases.
VarCat tries to coerce types into VT_BSTR to do cat.
2003-01-02 23:11:56 +00:00
Marcus Meissner
4beaa06e9d
Process TKIND_ALIAS in SLTG typelibs, 0x14 in the tail is the
...
tdescAlias.vt entry.
Added a small handler for TKIND_DISPATCH in SLTG.
ITypeLib_Release can have a NULL pointer as ITypeInfo*.
Split out _copy_arg function for both DispCall and ITypeInfo_fnInvoke,
added some more functionality.
ITypeInfo_fnInvoke can handle VT_USERDEFINED variants.
2003-01-02 23:11:19 +00:00
Marcus Meissner
1c421d779d
Support DllGetClassObject of CLSID_StdPicture.
...
PICTYPE_NONE has width/height 0.
2003-01-02 17:54:57 +00:00
Francois Gouget
236ae4d2c9
Remove unnecessary sprintf calls.
2003-01-02 17:49:51 +00:00
Francois Gouget
3b640ca405
Fix signed/unsigned warnings.
2003-01-02 17:47:01 +00:00
Francois Gouget
49e119f95f
Move the test strings into their own array and convert them to unicode
...
using a for loop. This lets us later print the offending string when a
test fails.
Fix the MSVC compilation error (XXXe183) and warnings (put suffixes as
in 0L & 1.0F, signed/unsigned warnings, s/-2147483648/0x80000000L/).
Uncomment the DateFromStr tests and fill in the todo fields where
appropriate.
Define an NB_OLE_STRINGS macro and use it to make sure all the arrays
have the right number of fields.
In the *FromStr loops, fill the return field with a dummy value (42)
before calling the conversion function. This way a test no longer
depends on whether the previous test failed or not!
If a test is expected to fail, then retval is meaningless -> omit it
from the result arrays.
If a test actually fails or was expected to fail, then there is no
point in checking retval.
Improve error reporting.
Pass the printf-style format directly to ok, remove the unnecessary
sprintfs.
2002-12-24 00:49:27 +00:00
Marcus Meissner
ef2f1b6ec5
VariantChangeTypeEx for VT_ARRAY | type style variants.
2002-12-23 02:03:10 +00:00
Marcus Meissner
7c290abd85
Fixed VarBstrCmp/Cat .spec entries.
...
Started regression test for SafeArray functions.
Fixed SafeArrayAllocDescriptor (check bounds, set cDims).
Fixed VARTYPE_SIZE array entries so it matches native.
2002-12-23 02:02:49 +00:00
Alexandre Julliard
3c25c8e933
Get rid of ole.h.
2002-12-23 01:46:34 +00:00
Robert Shearman
a80e051a71
Add standard dispatch implementation (CreateStdDispatch).
2002-12-17 01:47:27 +00:00
Andreas Mohr
dc85dc0a1b
Implemented VarOr().
2002-12-16 22:08:48 +00:00
Alberto Massari
ea1ca9c705
Implemented DispCallFunc so that it works when calling event handlers
...
that have no return value.
2002-12-12 22:59:25 +00:00
Alberto Massari
059cffd728
Calling SafeArrayDestroy on a destroyed array should be a no-op.
2002-12-12 22:59:07 +00:00
Marcus Meissner
26ffca49a2
Reverted last VT_USERDEFINED patch (was broken).
...
Marshal TKIND_DISPATCH interfaces just like TKIND_INTERFACE.
2002-12-12 22:25:07 +00:00
Marcus Meissner
561a1a8de0
Separated out 16bit sources for ole2disp.dll.
2002-12-12 22:24:45 +00:00
Alexandre Julliard
dbf8b78acd
Added .spec.def files.
2002-12-12 22:04:04 +00:00
Marcus Meissner
3b5e2d1a08
Split out 16bit code into typelib16.c.
2002-12-12 03:56:36 +00:00
Marcus Meissner
5f9e3ffdb9
Serialize/deserialize all reftypes in VT_USERDEFINED.
2002-12-12 02:15:46 +00:00
Alexandre Julliard
435e2e63f4
winnt.h should not be self-contained, it must depend on windef.h so
...
that STRICT works correctly; moved some definitions back to windef.h
where they belong, and removed a couple of definitions that don't
exist on Windows.
2002-12-10 22:56:43 +00:00
Jason Edmeades
d197d40295
VarAdd support for integers.
2002-12-10 19:06:28 +00:00
Ove Kaaven
1f5315c80f
Make sure that no files except unknwn.h include wine/obj_base.h
...
directly.
2002-12-05 20:33:07 +00:00
Marcus Meissner
d344849e4e
Marshal VT_R4 (4 byte float).
2002-12-05 19:12:50 +00:00
Ove Kaaven
729dd8bf28
Added more types to wtypes.idl.
2002-12-03 21:42:17 +00:00
Jason Edmeades
0ba86d81fe
Add support for VarAnd between integers.
2002-11-25 02:42:33 +00:00
Alberto Massari
1a4f5cff4e
ITypeInfo::Invoke now is able to invoke a function even when it is
...
provided with a byref argument.
2002-11-13 19:36:57 +00:00
Marcus Meissner
dbebcffb6f
Added partial implementation of ITypeInfo::GetDllEntry().
2002-11-11 22:24:31 +00:00
Marcus Meissner
09a49d4a17
Implemented OleLoadPictureEx.
2002-11-11 19:54:22 +00:00
Marcus Meissner
8e801e25f6
Silence one FIXME(). Implement ITypeInfo::GetDocumentation for
...
variable descriptions.
2002-11-11 19:54:04 +00:00
Marcus Meissner
1bd4bbb569
Draft implementation of DispCallFunc.
2002-11-08 18:51:28 +00:00
Patrik Stridvall
199acb77f1
Added some defines for compatibility with Windows headers.
2002-10-29 21:26:42 +00:00
Michael Stefaniuc
9faec8a877
Compile the oleaut32 dll with -DSTRICT.
2002-10-25 03:12:50 +00:00
Alexandre Julliard
23bb3715f7
Added support for building certain dlls with -DSTRICT.
...
Added -DWINE_NO_STRICT flag to dlls that don't support STRICT yet.
2002-10-18 23:46:28 +00:00
Patrik Stridvall
9c1de6de30
Moved all the content of the DDK files ntdef.h and ntddk.h to
...
winternl.h.
2002-09-12 22:07:02 +00:00
Alexandre Julliard
dd0bdbe44e
Removed the __uint* types from basetsd.h since they don't exist under
...
Windows. Fixed a few other issues with type definitions.
2002-09-12 17:29:12 +00:00
Patrik Stridvall
1ee88a2bfb
Removed trailing white space.
2002-08-28 23:43:43 +00:00
Patrik Stridvall
d016f819f1
Added include protection for unistd.h and sys/time.h.
2002-08-17 00:43:16 +00:00
Alexandre Julliard
edeee89c3e
Create separate makefiles for tests for more flexibility.
2002-08-09 01:22:40 +00:00
Alexandre Julliard
267ca68253
Fixed HANDLE<->HFILE conversions, since they will be different types
...
when handles are void*.
2002-07-31 17:20:00 +00:00
Michael Stefaniuc
5c55df649b
Converted HENHMETAFILE and HMETAFILE to a void*.
2002-07-29 00:14:59 +00:00
Patrik Stridvall
a3868218d0
Fixed some issues found by winapi_check.
2002-07-19 00:30:16 +00:00
Gregg Mattinson
ecdafc37a2
Fixed void* arithmetic.
2002-07-16 01:12:39 +00:00
Gregg Mattinson
6886467cb9
Fixes to allow big endian machines to load MSFT typelib files.
2002-07-10 23:07:59 +00:00
Jason Edmeades
86d5a32de4
- VarFormat now supports VT_R8 and BYREF variant types.
...
- Add VarCyMulI4 support.
2002-07-08 19:36:24 +00:00
Jason Edmeades
daec720709
Ensure VarBstrCat handles null parms as per windows and actually does
...
the concatenation even for null args.
2002-07-05 01:22:03 +00:00
Jason Edmeades
99b3307406
Ensure we free the cached HFONT after loading in a fresh font. Enables
...
fonts in VB programs to appear correctly.
2002-06-25 02:54:06 +00:00
Vincent Béron
e35580f4c9
Fixed some various comparisons wrt signedness.
2002-06-21 22:25:17 +00:00
John K. Hohm
2b78ac039f
Implemented SizeOfVariantData cases for VT_DISPATCH, VT_UNKNOWN, VT_CY.
2002-06-21 20:13:18 +00:00
Alexandre Julliard
77afd6c47e
Made some more spec file entries optional or unnecessary.
...
Fixed a few DLLName/DLLFileName mismatches.
2002-06-21 19:15:45 +00:00
Alexandre Julliard
8438d9fccb
Moved succeeding test out of todo block.
2002-06-21 19:02:44 +00:00
Mike McCormack
b7937afab9
Fixed ordinals to match the Windows values.
...
Added a couple of stubs.
2002-06-20 23:51:21 +00:00
Jason Edmeades
5b6a9ff537
- VarAnd, VarCmp (Strings only), VarNot implemented.
...
- VarParseNumFromStr/VarNumFromParseNum handle negative currency
numbers.
- More VarCmp support (Decimals and Dates).
- Date support for VB time only (0.0->1.0), corrected some date
rounding and calculation errors around variant dates and the system
time.
- Variant date support now round trips! (Date->Variant->Date) due to
misuse of tm_mon (0..11 not 1..12).
- Better pre-1899 support for dates in the SYSTEMTIME format.
- VarBstrFromCy, VarCyFromStr implemented.
- VarFormat partial implementation (currency and date support).
- VarFormatFromTokens, VarTokenizeFormatString partial implementation
as per w2k (dates only so far).
- Better debugging when dumping variants, and some additional trace
points to help debugging.
- Fix to VarBstrCmp to handle null and empty string the same (as per
w2k, different to msdn).
- Fix return from VarDateFromUdate.
- Correct definition of CY structure.
2002-06-20 23:07:55 +00:00
Marcus Meissner
30f9da4b58
ITypelib::Invoke: Handle different length arguments better, we also
...
return 1 VARIANT only.
2002-06-20 22:45:08 +00:00
Marcus Meissner
c18a6aa8fd
Handle argsize for VT_DATE.
2002-06-14 00:36:42 +00:00
Huw D M Davies
61fc6f8cd3
Add more magic to find the start of the nametable.
2002-06-10 23:01:34 +00:00
Marcus Meissner
e81f10c97c
Merged the two serializer and unserializer functions into one, cleaned
...
them up.
VT_PTR: Handle NULL pointers by sending a cookie.
Added support for: VT_CARRAY, VT_DISPATCH, TKIND_RECORD, VT_VOID,
VT_UI1, VT_UI2, VT_ERROR, VT_UI4, VT_UINT.
Added a custom serializer for DISPPARAMS struct.
2002-06-10 02:30:20 +00:00
Marcus Meissner
238cdeab1b
Added some debugoutput functions for TYPEATTR, IDLDESC, VARDESC.
...
Support more parameters in _invoke (needed for IDispatch::Invoke in
the marshaller).
2002-06-10 02:29:55 +00:00
Marcus Meissner
fd625ddb0b
Added marshalling of IUnknown.
2002-06-04 22:14:06 +00:00
Steven Edwards
fb24f71e5b
Porting fixes.
2002-06-04 00:50:11 +00:00
Alexandre Julliard
7cae558bdc
Removed some more trailing whitespace.
2002-06-01 02:55:48 +00:00
Vincent Béron
9a62491660
Removed trailing whitespace.
2002-05-31 23:06:46 +00:00
Vincent Béron
6a5ba8fba2
Fixed some more missing \n in traces.
2002-05-29 19:09:54 +00:00
Andreas Mohr
841ce935d2
Removed obsolete email address.
2002-05-23 02:41:46 +00:00
Francois Gouget
4c314000b9
Make the tests compile with Visual C++.
2002-05-23 02:40:07 +00:00
Alexandre Julliard
cc2ee7636d
Renamed Winelib apps to .exe.so to follow the dll naming convention.
2002-05-21 19:42:29 +00:00
Alexandre Julliard
2ab7625934
Removed most imports of ntdll since we no longer import Wine internal
...
functions from there.
2002-05-17 03:37:12 +00:00
Alexandre Julliard
9b6f433ebb
Implemented strtolW/strtoulW in libwine_unicode and used it to replace
...
wcstol and friends.
2002-05-16 18:58:47 +00:00
Alexandre Julliard
ad53383f9b
Added winebuild support for generating a .dbg.c file containing the
...
debug channels definitions.
Made win32 the default type for spec files.
Ignore C compiler in winebuild so we can simply pass it $(DEFS).
Removed type win32 and debug_channels from spec files.
Fixed winebuild to always generate correct C identifiers (reported by
Vincent Béron).
2002-05-14 20:54:58 +00:00
Alexandre Julliard
67371bcc8d
Added -res option to specify resources on winebuild command-line.
...
Added -exe mode to generate a .spec.c for an exe without having to
provide a .spec.
Removed some no longer needed spec files.
Removed .dll extension in makefiles import specifications.
2002-05-11 23:06:32 +00:00
Alexandre Julliard
32459912dc
Moved imports specification from the .spec into the Makefile so that
...
it can be used on platforms that don't build a .spec.c file.
2002-05-09 00:05:48 +00:00
Marcus Meissner
87ecfab4ec
Small hack to make InstallShield v6 work better.
2002-05-06 20:12:32 +00:00
Marcus Meissner
5b63cc22e8
BSTRs can be NULL, handle them seperately.
2002-05-06 20:12:11 +00:00
Alexandre Julliard
140e7222e0
Removed more code at Hidenori's request.
2002-05-05 19:40:57 +00:00
Alexandre Julliard
b53f13093e
Attempt at fixing MAX_PATH issues for mingw.
2002-05-01 18:13:18 +00:00
Alexandre Julliard
9a8e6e98c5
Added some shdocvw ordinals and stubs.
...
Fixed a few winapi_check issues.
2002-04-27 00:16:25 +00:00
Hidenori Takeshima
ed8fbe3e95
Implemented OleIconToCursor.
2002-04-20 20:55:13 +00:00
Hidenori Takeshima
a781a31922
Return error codes in some 16bit ole stubs, returning success causes
...
crashes.
2002-04-11 23:44:48 +00:00
Alexandre Julliard
d7c606d624
Various makefile fixes for the test environment.
2002-04-02 02:58:45 +00:00
Hidenori Takeshima
3a00735924
Implemented CreateStdDispatch and CreateDispTypeInfo.
2002-04-01 20:58:37 +00:00
Marcus Meissner
e8d977011b
Ported variant tests to the new testing framework.
2002-03-26 01:54:25 +00:00
Alexandre Julliard
c1bfca04e1
Changed builtin dlls file names to make it clear they are not normal
...
Unix libraries, and install them in $libdir/wine instead of $libdir to
avoid name conflicts in /usr/lib.
2002-03-20 22:19:06 +00:00
Alexandre Julliard
0799c1a780
Added LGPL standard comment, and copyright notices where necessary.
...
Global replacement of debugtools.h by wine/debug.h.
2002-03-09 23:29:33 +00:00
Patrick Haller
0e3c9d454b
Fix crash in VariantTimeToDosDateTime.
2002-02-19 18:23:09 +00:00
Marcus Meissner
0749fc2034
Implemented Local Server COM.
...
Implemented the Typelib based Marshaler.
2002-02-05 18:11:17 +00:00
Malte Starostik
4062cd924f
Do not destroy ITypeLib held by ITypeInfo before the latter is freed.
2002-02-04 18:32:20 +00:00
Marcus Meissner
a79dcc46eb
VT_EMPTY can be coerced to VT_I4, value 0.
2002-02-04 18:31:53 +00:00
Huw D M Davies
eb16e1b055
Weird thing with lcid of library is that if sublang is neutral then we
...
return the primary lang else we return 0.
2002-01-29 17:05:11 +00:00
Dimitrie O. Paun
693cca5d4d
Make FIXMEs more grep-able.
2002-01-29 03:12:19 +00:00
Patrik Stridvall
74e4d21ebe
Avoid wildcards in .cvsignore.
2002-01-29 03:05:12 +00:00
Bill Medland
a51ff76b86
A couple of additions.
2002-01-29 02:44:44 +00:00
Marcus Meissner
de46c22917
The \\<nr> magic in LoadTypeLibEx found directories, which was not
...
intended. Return error in that case.
2002-01-22 18:28:51 +00:00
Bill Medland
e0939a4995
Leave IID check to the OleCreateFontIndirect, so that SFCF will handle
...
all the interfaces that OleCreate.. will.
2002-01-15 20:23:57 +00:00
Bill Medland
dce7e5cf8e
Comment only; error in Microsoft documentation.
2002-01-10 18:19:29 +00:00
Bill Medland
064972768d
Fixed GetDocumentation a little. When called from RegisterTypeLib it
...
was leaving the Doc entry uninitialised, leading to page fault when
measuring it. Also ensure correct freeing of resources on failure.
2002-01-09 19:10:59 +00:00
Ove Kaaven
fbdfef73f6
If SafeArrayGetElement is called on a variant array, initialize
...
destination variant before copying the array element to it, some badly
behaved apps don't seem to do it themselves.
2002-01-02 21:44:49 +00:00
Ove Kaaven
a0da66945f
Fixed a looks-like-nobody-ever-tested-this-function kind of bug in
...
VariantCopyInd.
2002-01-02 21:44:30 +00:00
Alexandre Julliard
193cf50a09
Removed some of the calls to HEAP_strdup* functions.
2002-01-01 00:24:30 +00:00
Alexandre Julliard
966121ccd8
Removed the SEGPTR_* macros.
2001-12-26 20:47:33 +00:00
Alexandre Julliard
d7b76822ef
Use MapLS/UnMapLS instead of SEGPTR_* macros.
2001-12-20 00:19:40 +00:00
Andreas Mohr
9cef2d0b1d
- fix wrong hexadecimal GetLastError() output
...
- misc fixes
- changed my email address
2001-11-19 02:30:01 +00:00
Huw D M Davies
c10d17dee9
Fixes stupid bug with typelib filenames.
2001-11-12 15:50:01 +00:00
Francois Gouget
070e749cfb
Don't prefix %p with 0x.
...
Various English fixes.
2001-11-06 21:01:32 +00:00
Hidenori Takeshima
2843934af5
Implemented OleCreatePropertyFrame and
...
OleCreatePropertyFrameIndirect.
2001-10-23 19:59:24 +00:00
Andreas Mohr
e15badb478
Cosmetics.
2001-10-21 15:18:15 +00:00
Ove Kaaven
27e179794d
Fixed bugs with propget methods with input arguments.
...
Improved variant debug dumps.
2001-10-14 16:07:49 +00:00
Ove Kaaven
d63cf5f846
Fixed bugs in safe arrays.
...
- enlarging a safe array didn't clear the new entries
- element access only validated the first dimension
- the validation always failed when the array contained 1 element
2001-10-14 16:07:36 +00:00
Ove Kaaven
d418682da7
Fix a UINT16 redefinition problem.
2001-10-14 16:07:23 +00:00
Francois Gouget
141039a54c
Move the RT_XXX macros to winuser.h.
...
winuser.h: Add support for NOGDI.
winuser.h: Modify to allow compilation without wingdi.h.
2001-10-10 02:51:24 +00:00
Huw D M Davies
e2a9e49349
Remove some unnecessary AddRef's.
2001-10-05 19:37:44 +00:00
Ove Kaaven
f26d2522af
The DISPPARAMS parameter array is a reverse-order array.
2001-10-04 18:11:11 +00:00
Ove Kaaven
54c8fee942
Implement coercion to VT_UNKNOWN from VT_DISPATCH.
2001-10-04 16:14:24 +00:00
Ove Kaaven
77f8e5fef2
ITypeInfo::Invoke should also search inherited interfaces for the
...
method to invoke.
ITypeInfo::GetIDsOfNames needs to do case-insensitive string
compares.
2001-10-04 16:14:08 +00:00
Ove Kaaven
e35f4ee144
Don't ignore DISPATCH_METHOD in ITypeInfo::Invoke.
2001-10-03 18:42:54 +00:00
Huw D M Davies
58aa0a12b9
Looks like the SLTG_ImplInfo struct isn't a fixed size.
2001-10-03 18:41:26 +00:00
Andreas Mohr
2718c895d1
Make OaBuildVersion() return the highest version value possible.
...
Some cleanups.
2001-10-02 18:28:31 +00:00
Huw D M Davies
04f90ca78a
Long nameless args in SLTG apparently get denoted by 0xfffe.
2001-10-02 17:25:55 +00:00
Ove Kaaven
aacac86ada
Implemented DispGetParam.
2001-10-01 20:53:11 +00:00
Huw D M Davies
899861d130
Better handling of typelibs loaded with a trailing resource number.
...
The logic for determining whether an SLTG typelib has a function param
as a 'short' or 'long' type has been 'refined'.
2001-09-26 23:05:35 +00:00
Ove Kaaven
9f6d5a068b
Variants and safe arrays is now able to copy BSTR swith embedded null
...
characters. Safe arrays now handle BSTRs and variants.
2001-09-21 21:01:31 +00:00
Ove Kaaven
eebbeef944
Register typelib marshaling for OLE Automation-compatible interfaces.
2001-09-21 21:00:37 +00:00
Patrik Stridvall
72d41524c8
Documentation fixes.
2001-09-10 23:16:31 +00:00
Huw D M Davies
3db218a2a1
Load some useful TYPEATTR elements from v1 typelibs.
2001-09-10 23:13:28 +00:00
Huw D M Davies
0d969c7043
Add reader for v1 (SLTG) typelibs.
...
Fix a few problems with v2 (MSFT) typelibs.
LoadTypeLibEx should do a SearchPath to locate typelib.
2001-09-07 15:27:16 +00:00
Francois Gouget
9947b68c3e
Add the decVal field to VARIANT.
...
Fix the VARIANT C layout, i.e. the union/struct names/nesting.
Encapsulate all accesses to VARIANT types with the V_VT and V_UNION
macros.
2001-08-21 17:03:10 +00:00
Marcus Meissner
f158f541dd
Use GetDC(0) instead of CreateCompatibleDC(0).
2001-08-20 18:00:10 +00:00
Marcus Meissner
872097ccd4
We need to make a copy of the fontname and the HFONT handle in
...
IFont_Clone, otherwise we get memory corruption and bad GDI handles.
2001-08-20 17:59:10 +00:00
Marcus Meissner
d23f0dbea2
Do not pass the high level wFlags from VariantChangeType* down to low
...
level Variant conversion functions.
2001-08-18 18:00:50 +00:00
Mike McCormack
8fef006fd2
Implemented oleaut32.VarBstrCat.
2001-08-18 16:06:30 +00:00
Mike McCormack
06abe79037
Partially implement oleaut32.VarBstrCmp.
2001-08-16 18:01:41 +00:00
Marcus Meissner
4736cc8cd5
Implemented VarParseNumFromStr, VarNumFromParseNum.
2001-08-15 18:47:28 +00:00
Marcus Meissner
542f775343
DateTimeStringToTm and DateToTm must use dwFlags instead of lcid.
2001-08-15 17:39:24 +00:00
Daniel Walker
3e3e230d3b
- implemented SystemTimetoVariantTime/VariantTimetoSystemTime
...
There was another implementation of SystemTimetoVariantTime
submitted that didn't work for dates prior to 1900.
- implemented VarDateFromUDate/VarUdateFromDate
- implemented VariantTimeToDosDateTime
2001-08-13 20:07:01 +00:00
Patrik Stridvall
ad9cab82a4
Fixed issue found by winapi_check.
2001-08-09 21:35:59 +00:00
Marcus Meissner
252b0fe099
Implemented OleLoadPicture.
...
Added support for loading JPEG, Bitmap and Icons from persistant
streams.
Implemented JPEG support using libjpeg, added necessary configure.in
options.
Added IConnectionPoint style notifications to the IPicture iface.
Implemented several of the stubs already there, added some more.
2001-08-06 18:52:14 +00:00
Marcus Meissner
f7c69ede9e
First (partial) implementation of ITypeInfo::Invoke.
...
Fixed buffer len passing to snprintf().
2001-08-06 17:46:18 +00:00
Malte Starostik
b91c3ca7d1
Implemented RegisterTypeLib.
2001-08-03 18:13:24 +00:00
Patrik Stridvall
b3b61dad68
Documentation fixes.
2001-07-26 21:44:23 +00:00
Alexandre Julliard
1922c72b8a
Removed unnecessary inclusion of heap.h.
2001-07-25 00:43:29 +00:00
Marcus Meissner
c0ccd263a7
OLEAUT32.DllGetClassObject and support for the Ole StdFont added (just
...
giving back a 8 point System font for now).
2001-07-24 00:59:28 +00:00
Patrik Stridvall
4b1574577d
- Made sure that the files that contains the declarations
...
of the implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.
2001-07-23 23:50:18 +00:00
Marcus Meissner
3f46d3d6a4
OleFont::IDispatch::Invoke stub can just return S_OK.
2001-07-22 23:03:55 +00:00
Patrik Stridvall
bc38d6bfde
- Made sure that the files that contains the declarations
...
of the implementated functions are included.
- Corrected mismatching prototypes.
- Cleaned up the include section.
2001-07-20 18:00:00 +00:00
Marcus Meissner
1ef0d39c66
Made some FIXME()s print the respective strings passed.
...
Changed StgSetTimes() to correct type.
2001-07-14 00:47:52 +00:00
Patrik Stridvall
044855c6ec
Documentation fixes.
2001-07-11 18:56:41 +00:00
Patrik Stridvall
3e3194f68b
- Added comment that code is broken.
...
- Silenced annoying long term winapi_check message.
2001-07-08 22:31:29 +00:00
Patrik Stridvall
01d5e5b071
Documentation fixes.
2001-07-02 19:59:40 +00:00
Patrik Stridvall
3ca9823941
Documentation ordinal fixes.
2001-06-20 23:03:14 +00:00
Patrik Stridvall
8b216b3d02
Documentation ordinal fixes.
2001-06-19 18:20:47 +00:00
Francois Gouget
9fcefdd89d
Fix the VarXxxFromCy conversions.
...
Remove (commented-out) references to inexistent VarXxxFrom32 functions.
Remove obsolete '32' suffixes.
2001-05-31 21:32:08 +00:00
Francois Gouget
cd8d181a0b
Spelling typos.
2001-05-18 21:01:38 +00:00
Francois Gouget
ee285b7ac8
Remove unnecessary single quoting of debugstr_xxx strings.
2001-05-11 20:03:40 +00:00
Francois Gouget
e76218dd61
Add '\n' at the end of traces.
2001-05-09 17:31:31 +00:00
Gerard Patel
3b63e6a3c6
Stub for OleLoadPictureEx.
2001-04-10 21:17:04 +00:00
Dmitry Timoshkov
13535251bf
Add version info for built-in oleaut32.dll.
2001-03-19 19:17:27 +00:00
Andreas Mohr
b6474aebd4
The for loop in ITypeLib2_fnFindName was wrong (extra ';').
2001-03-05 19:32:50 +00:00
Francois Gouget
282f7270c1
Small 'typos in comments' fixes.
2001-02-28 05:31:02 +00:00
Jon Griffiths
935677ab04
Implement LHashValOfNameSysA for 4 LCIDs, fix prototype.
2001-02-12 19:33:42 +00:00
Patrik Stridvall
bca4a8dce0
Documentation argument fixes.
2001-02-12 03:49:57 +00:00
James Juran
f4d5fefb0a
Add <string.h> to files that needed it.
2001-01-26 20:43:40 +00:00
Josh DuBois
a57eb65548
Changed VarCyFromI1 to take a signed char.
2001-01-22 19:23:54 +00:00
François Gouget
da2b6a9f26
Fixed some HFILE vs. HANDLE mismatches.
...
If not used the last parameter of CreateFile must be 0, not -1.
2001-01-06 01:29:18 +00:00
Francois Jacques
11ed84009e
- TLB_DoFuncs: code cleanup and elemdescFunc read correctly from TLB.
...
- TLB_LoadTypeLib: ref count problem.
- ITypeLib::GetTypeInfoOfGuid: safer implementation (pointer testing).
- ITypeInfo::GetRefTypeOfImplType: safer implementation (pointer testing).
- ITypeInfo2::GetDocumentationL return errors if SysAllocString failed.
- TLB loader functions now trace in "typelib" channel.
- Improved traces in AddRef/Release and improved dump_* functions for
debugging.
2000-12-21 20:20:12 +00:00
Francois Jacques
de3486dd1c
Updated SafeArrayGetUBound and SafeArrayGetLBound with more sanity
...
checks: an array has at least one dimension.
Updated validCoordinates, where SafeArrayGetLBound was called on
dimension 0.
2000-12-21 20:18:18 +00:00
Francois Jacques
31c6ac2aac
Implementation of Dispatch API.
2000-12-19 23:29:58 +00:00
François Gouget
44a182229b
winuser.h now requires that we include winbase.h first.
2000-12-19 04:53:20 +00:00
Gerard Patel
53d198cc00
Misc fixes for QueryPathOfRegTypeLib, TLB_ReadTypeLib,
...
ITypeInfo_fnGetContainingTypeLib.
2000-12-19 03:37:44 +00:00
Alexandre Julliard
db0747d095
Removed some unnecessary includes.
...
Got rid of ldt.h.
2000-12-13 20:23:41 +00:00
Alexandre Julliard
982a223f36
Replaced PTR_SEG_TO_LIN macro by exported MapSL function.
...
Fixed a few ptr/segptr mismatches.
Moved CONV_RECT/POINT macros to wingdi16.h.
2000-12-13 20:20:09 +00:00
Alexandre Julliard
f6168db690
Fixed some warnings.
2000-12-13 20:03:53 +00:00
Andreas Mohr
1af53cbb2a
- README update
...
- add offsets to ASPI struct defines
- spelling
2000-12-09 03:15:32 +00:00
Andreas Mohr
5448c534f3
Don't fail on pointer address checking when foreign heap.
2000-12-09 03:08:02 +00:00
Alexandre Julliard
5be8e7d8e0
Created a small static library in ole/libuuid.a that contains all the
...
UUID definitions (with the help of Francois Gouget).
2000-12-06 01:50:47 +00:00
Francois Gouget
519346a47e
Fixed miscellaneous typos, syntactic and grammatical errors.
2000-12-02 20:18:08 +00:00
Patrik Stridvall
2b3aa616e8
Added/modified documentation for function arguments.
2000-12-01 23:58:28 +00:00
David Elliott
ea186796eb
Remove libXXXX.so.1.0 lines from .cvsignore files.
2000-11-30 19:57:34 +00:00
Patrik Stridvall
1ed5577522
Don't include windows.h internally.
2000-11-30 01:31:28 +00:00
Alexandre Julliard
71d68bbae0
Use the HEAP_WINE_SEGPTR flag to specify allocations on the segptr heap.
...
Added a hack in MapLS to recognize such allocations and use the heap
selector in this case.
2000-11-30 01:19:51 +00:00
Dimitrie O. Paun
529da54394
Require {DECLARE,DEFAULT}_DEBUG_CHANNEL statements to end in a ;
2000-11-27 23:54:25 +00:00
Andreas Mohr
cb45438be2
- added winver settings nt2k, win30 and win20 (yes, some rare programs need this)
...
and *document* it (win98 was not documented previously)
- OaBuildVersion: add value for NT4 SP6
- spelling fixes
2000-11-27 01:39:05 +00:00
Francois Jacques
7163957908
- support for arguments with referenced types
...
- imported type libraries
- dispinterfaces
- dual interfaces
- ref count problems
- memory leaks fixed
2000-11-25 23:51:30 +00:00
Francois Jacques
26c0b76bf8
Implemented VT_EMPTY to VT_BSTR type coercion.
2000-11-25 01:20:37 +00:00
Alexandre Julliard
c95b1aa37f
Avoid linking with ntdll where possible.
2000-11-16 04:15:08 +00:00
Alexandre Julliard
27939f00fd
Start using import tables for dlls that can already support it.
2000-11-12 03:50:10 +00:00
Alexandre Julliard
eb58e1d597
Declare debug channels in all dlls that need them; added imports of
...
ntdll where necessary.
2000-11-05 04:53:07 +00:00
Alexandre Julliard
908464d448
Authors: Andreas Mohr <amohr@codeweavers.com>, Dimitrie O. Paun <dimi@cs.toronto.edu>, Patrik Stridvall <ps@leissner.se>
...
Various warning fixes.
2000-11-01 03:11:12 +00:00
Joerg Mayer
650ba4df23
Move inline and static to the beginning of declarations.
2000-10-29 18:06:04 +00:00
Francois Jacques
e21864225a
Updated the load process so that all typelibs (and not just the first
...
one, as it used to) stored in a DLL can be loaded.
2000-10-26 19:29:09 +00:00
Francois Jacques
d1082dcaa1
Updated typelib loader. Typelib contents can be stored as multibyte
...
strings. However, they are always returned to the application as BSTR,
e.g. UNICODE strings. All strings are now stored as BSTR instead of
ASCII strings.
2000-10-25 21:24:53 +00:00
Chris Morgan
04996dda2d
Stub CreateDispTypeInfo, CreateStdDispatch16 and CreateStdDispatch.
2000-10-19 20:21:42 +00:00
Francois Gouget
529779cf4c
Fixed the signature of SysAllocStringByteLen.
2000-10-13 17:08:12 +00:00
Francois Gouget
5853bd3c70
Added some of the APIs introduced in Win98, mostly the VarXxx maths APIs.
2000-10-12 20:41:56 +00:00
Francois Gouget
9046658f06
Fixed some prototypes.
2000-10-03 04:09:17 +00:00
Alexandre Julliard
86f4531676
Added a few missing imports.
2000-09-27 22:32:44 +00:00
Alexandre Julliard
83f52d11c1
Moved all Win16 definitions out of the standard Windows headers.
2000-09-26 22:20:14 +00:00
Alexandre Julliard
74af67ef42
Removed shell.h. Cleaned up the nested includes mess in wine/obj_*.h.
2000-09-26 00:00:55 +00:00
Alexandre Julliard
072dfb57e3
Removed inclusion of wine/winestring.h from winbase.h and added it to
...
the C files that need it.
2000-09-25 23:30:56 +00:00
Gerard Patel
9005713d39
Avoid infinite loop if QueryPathOfRegTypeLib is called with lcid=0.
2000-09-19 02:37:07 +00:00
Andreas Mohr
349655636b
- made the MIDI sequencer error message much better for confused users
...
to be found on #WineHQ
- use strerror instead of errno at important places
- got rid of HAVE_STRERROR macro
- removed some #include:s (hopefully I didn't break anything)
2000-08-26 20:31:48 +00:00
Francois Jacques
133d70788a
- removed unnecessary recursion
...
- upon query failure on main primary lcid and secondary lcid,
attempts a query on system lcid (0)
2000-08-22 20:51:55 +00:00
Alexandre Julliard
c7e7df8b17
Replaced all lstr* calls from inside Wine code by their str* equivalent.
2000-08-14 14:41:19 +00:00
Alexandre Julliard
d586dc99be
Replaced VERSION_* calls by exported API equivalents.
2000-08-14 14:35:01 +00:00
James Hatheway
044d251980
- Avoid null-pointer exceptions by testing listnodes validity before doing
...
any work with those.
- TLB_ReadTypeLib now retrieves the length of the TLB and passes it to
the TLB constructor which initializes TLBContext::length to that
value.
- For non-standard pointed types, td[3] is always 0. I observed that
the type is stored at td[2]/8 and not td[3]/8.
- Null-pointer exception occurs when GetRefTypeOfImplType is called on a
type with no inherited interfaces. If the implemented types linked list
is empty, set pRefType as 0 and return S_OK.
2000-08-09 22:24:04 +00:00
Alexandre Julliard
691171b8e6
Small dll interfaces cleanups.
2000-08-08 20:49:16 +00:00
Alexandre Julliard
bea617be47
Moved GUID definitions to their respective dll.
2000-08-03 04:22:35 +00:00
Alexandre Julliard
6c9d83aa4c
Added imports of user32/gdi32/kernel32 wherever necessary.
2000-08-03 00:04:24 +00:00
Marcus Meissner
e5c1b9dded
Added CreateTypeLib,LHashValOfNameSys stubs.
...
Check for correct struct magic before reading out of it.
2000-07-29 21:54:58 +00:00
Huw D M Davies
e8d4268a9f
Add Connection Point support to OLE font objects.
...
Add some more TRACE()s.
2000-07-28 20:17:21 +00:00
Alexandre Julliard
76d3671bee
Added 'owner' field to 16-bit spec files to specify the name of the
...
32-bit dll that contains it.
2000-07-28 00:07:18 +00:00
Huw D M Davies
2e67f9bc44
A generic implemention of IConnectionPoint/IEnumConnections.
2000-07-25 12:26:12 +00:00
Andreas Mohr
2caee712a2
Spelling fixes.
2000-07-16 15:44:22 +00:00